mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
force refresh before activating the attribute detail dialog, fixes #4077
This commit is contained in:
parent
18801fb3e1
commit
23278f54cb
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user