mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 04:19:59 -06:00
force refresh before activating the attribute detail dialog, fixes #4077
This commit is contained in:
@@ -228,15 +228,19 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
// triggered from keyboard shortcut
|
||||
addNewLabelEvent({ntxId}) {
|
||||
async addNewLabelEvent({ntxId}) {
|
||||
if (this.isNoteContext(ntxId)) {
|
||||
await this.refresh();
|
||||
|
||||
this.handleAddNewAttributeCommand('addNewLabel');
|
||||
}
|
||||
}
|
||||
|
||||
// triggered from keyboard shortcut
|
||||
addNewRelationEvent({ntxId}) {
|
||||
async addNewRelationEvent({ntxId}) {
|
||||
if (this.isNoteContext(ntxId)) {
|
||||
await this.refresh();
|
||||
|
||||
this.handleAddNewAttributeCommand('addNewRelation');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user