feat: custom primary action label for new widget dialog
This commit is contained in:
parent
f9686f1a85
commit
bf47bc8ba3
2 changed files with 2 additions and 1 deletions
|
|
@ -128,6 +128,7 @@ export default class Widget {
|
|||
|
||||
this.refresh();
|
||||
},
|
||||
primary_action_label: __("Save")
|
||||
})
|
||||
|
||||
this.edit_dialog.make();
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class WidgetDialog {
|
|||
this.dialog.hide();
|
||||
this.primary_action(data);
|
||||
},
|
||||
primary_action_label: __("Add"),
|
||||
primary_action_label: this.primary_action_label || __("Add"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue