mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
use isLabelTruthy() for most binary labels
This commit is contained in:
@@ -65,10 +65,10 @@ export default class EditabilitySelectWidget extends NoteContextAwareWidget {
|
||||
async refreshWithNote(note) {
|
||||
let editability = 'auto'
|
||||
|
||||
if (this.note.hasLabel('readOnly')) {
|
||||
if (this.note.isLabelTruthy('readOnly')) {
|
||||
editability = 'readOnly';
|
||||
}
|
||||
else if (this.note.hasLabel('autoReadOnlyDisabled')) {
|
||||
else if (this.note.isLabelTruthy('autoReadOnlyDisabled')) {
|
||||
editability = 'autoReadOnlyDisabled';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user