mirror of
https://github.com/mue/mue.git
synced 2026-07-19 23:14:10 +02:00
fix: todo and photo packs
This commit is contained in:
@@ -51,7 +51,7 @@ function Navbar() {
|
||||
onChange={setShowRefreshOptions}
|
||||
/>
|
||||
<Checkbox
|
||||
name="todo"
|
||||
name="todoEnabled"
|
||||
text={variables.getMessage('widgets.navbar.todo.title')}
|
||||
category="navbar"
|
||||
/>
|
||||
|
||||
@@ -104,7 +104,7 @@ export default class Navbar extends PureComponent {
|
||||
{localStorage.getItem('notesEnabled') === 'true' ? (
|
||||
<Notes fontSize={this.state.zoomFontSize} />
|
||||
) : null}
|
||||
{localStorage.getItem('todo') === 'true' ? (
|
||||
{localStorage.getItem('todoEnabled') === 'true' ? (
|
||||
<Todo fontSize={this.state.zoomFontSize} />
|
||||
) : null}
|
||||
|
||||
|
||||
@@ -5,6 +5,10 @@ function showReminder() {
|
||||
localStorage.setItem('showReminder', true);
|
||||
}
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
// based on https://stackoverflow.com/questions/37684/how-to-replace-plain-urls-with-links
|
||||
export function urlParser(input) {
|
||||
const urlPattern =
|
||||
@@ -45,6 +49,9 @@ export function install(type, input, sideload) {
|
||||
localStorage.setItem('backgroundType', 'photo_pack');
|
||||
localStorage.removeItem('backgroundchange');
|
||||
EventBus.dispatch('refresh', 'background');
|
||||
// TODO: make this legitimately good and work without a reload - currently we just refresh
|
||||
sleep(4000);
|
||||
window.location.reload();
|
||||
break;
|
||||
|
||||
case 'quotes':
|
||||
|
||||
Reference in New Issue
Block a user