refactored TabContext => NoteContext

This commit is contained in:
zadam
2021-05-22 12:42:34 +02:00
parent 79a85a0aa7
commit 1a0aaf4a30
11 changed files with 18 additions and 22 deletions

View File

@@ -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');
}
}