mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
component => type widget refactoring
This commit is contained in:
@@ -135,6 +135,10 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
|
||||
this.$noteTitle.val(note.title);
|
||||
|
||||
if (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable()) {
|
||||
this.$noteTitle.prop("readonly", true);
|
||||
}
|
||||
|
||||
this.$protectButton.toggleClass("active", note.isProtected);
|
||||
this.$protectButton.prop("disabled", note.isProtected);
|
||||
this.$unprotectButton.toggleClass("active", !note.isProtected);
|
||||
|
||||
Reference in New Issue
Block a user