mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
refactored TabContext => NoteContext
This commit is contained in:
@@ -227,14 +227,14 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
|
||||
// triggered from keyboard shortcut
|
||||
addNewLabelEvent({ntxId}) {
|
||||
if (this.isTab(ntxId)) {
|
||||
if (this.isNoteContext(ntxId)) {
|
||||
this.handleAddNewAttributeCommand('addNewLabel');
|
||||
}
|
||||
}
|
||||
|
||||
// triggered from keyboard shortcut
|
||||
addNewRelationEvent({ntxId}) {
|
||||
if (this.isTab(ntxId)) {
|
||||
if (this.isNoteContext(ntxId)) {
|
||||
this.handleAddNewAttributeCommand('addNewRelation');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user