fix detail action label
This commit is contained in:
@@ -263,12 +263,13 @@ define('views/record/detail', ['views/record/base', 'view-record-helper'], funct
|
||||
if (typeof item === 'string') {
|
||||
item = {
|
||||
name: item,
|
||||
label: this.translate(item, 'actions', this.scope),
|
||||
};
|
||||
}
|
||||
var item = Espo.Utils.clone(item);
|
||||
var name = item.name;
|
||||
|
||||
if (!item.label) item.html = this.translate(name, 'actions', this.scope);
|
||||
|
||||
this.addDropdownItem(item);
|
||||
|
||||
if (!Espo.Utils.checkActionAvailability(this.getHelper(), item)) return;
|
||||
|
||||
Reference in New Issue
Block a user