mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 09:28:45 +02:00
fix protected shield background visibility
This commit is contained in:
parent
494a980ecb
commit
35648b9f37
@ -97,13 +97,6 @@ class TabContext {
|
||||
|
||||
this.attributes.invalidateAttributes();
|
||||
|
||||
this.$noteTitleRow.show(); // might be hidden from empty detail
|
||||
this.$tabContent.toggleClass("protected", this.note.isProtected);
|
||||
this.$protectButton.toggleClass("active", this.note.isProtected);
|
||||
this.$protectButton.prop("disabled", this.note.isProtected);
|
||||
this.$unprotectButton.toggleClass("active", !this.note.isProtected);
|
||||
this.$unprotectButton.prop("disabled", !this.note.isProtected || !protectedSessionHolder.isProtectedSessionAvailable());
|
||||
|
||||
this.setupClasses();
|
||||
|
||||
this.setCurrentNotePathToHash();
|
||||
@ -169,6 +162,13 @@ class TabContext {
|
||||
this.$tabContent.addClass(this.note.cssClass);
|
||||
this.$tabContent.addClass(utils.getNoteTypeClass(this.note.type));
|
||||
this.$tabContent.addClass(utils.getMimeTypeClass(this.note.mime));
|
||||
|
||||
this.$noteTitleRow.show(); // might be hidden from empty detail
|
||||
this.$tabContent.toggleClass("protected", this.note.isProtected);
|
||||
this.$protectButton.toggleClass("active", this.note.isProtected);
|
||||
this.$protectButton.prop("disabled", this.note.isProtected);
|
||||
this.$unprotectButton.toggleClass("active", !this.note.isProtected);
|
||||
this.$unprotectButton.prop("disabled", !this.note.isProtected || !protectedSessionHolder.isProtectedSessionAvailable());
|
||||
}
|
||||
|
||||
getComponent() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user