feat: custom primary action label for new widget dialog

This commit is contained in:
Shivam Mishra 2020-04-08 20:16:51 +05:30
parent f9686f1a85
commit bf47bc8ba3
2 changed files with 2 additions and 1 deletions

View file

@ -128,6 +128,7 @@ export default class Widget {
this.refresh();
},
primary_action_label: __("Save")
})
this.edit_dialog.make();

View file

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