mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
refactored TabContext => NoteContext
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import TabAwareWidget from "./tab_aware_widget.js";
|
||||
import NoteContextAwareWidget from "./note_context_aware_widget.js";
|
||||
import server from "../services/server.js";
|
||||
import fileWatcher from "../services/file_watcher.js";
|
||||
|
||||
@@ -19,7 +19,7 @@ const TPL = `
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
export default class NoteUpdateStatusWidget extends TabAwareWidget {
|
||||
export default class NoteUpdateStatusWidget extends NoteContextAwareWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled()
|
||||
&& !!fileWatcher.getFileModificationStatus(this.noteId);
|
||||
|
||||
Reference in New Issue
Block a user