|
|
|
|
@ -6,6 +6,7 @@ import SpacedUpdate from "../services/spaced_update.js";
|
|
|
|
|
import appContext from "../components/app_context.js";
|
|
|
|
|
import branchService from "../services/branches.js";
|
|
|
|
|
import shortcutService from "../services/shortcuts.js";
|
|
|
|
|
import utils from "../services/utils.js";
|
|
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
|
<div class="note-title-widget">
|
|
|
|
|
@ -73,7 +74,7 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
|
|
|
|
|
|
|
|
|
|
async refreshWithNote(note) {
|
|
|
|
|
const isReadOnly = (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable())
|
|
|
|
|
|| ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(note.noteId)
|
|
|
|
|
|| utils.isLaunchBarConfig(note.noteId)
|
|
|
|
|
|| this.noteContext.viewScope.viewMode !== 'default';
|
|
|
|
|
|
|
|
|
|
this.$noteTitle.val(
|
|
|
|
|
|