mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-27 22:46:04 +00:00
Buttons html support revert
This commit is contained in:
@@ -74,6 +74,7 @@ export default class DetailRecordButtonsView extends View<{
|
||||
hidden: it.hidden,
|
||||
disabled: it.disabled || data.allDisabled,
|
||||
iconClass: it.iconClass,
|
||||
html: it.html,
|
||||
}).node()
|
||||
);
|
||||
});
|
||||
@@ -121,6 +122,7 @@ export default class DetailRecordButtonsView extends View<{
|
||||
className: data.actionClassName,
|
||||
hidden: it.hidden,
|
||||
disabled: it.disabled || data.allDisabled,
|
||||
html: it.html,
|
||||
}).node()
|
||||
);
|
||||
});
|
||||
|
||||
@@ -36,13 +36,13 @@ export default class extends DetailRecordView {
|
||||
if (this.getAcl().checkModel(this.model, 'edit')) {
|
||||
if (['Held', 'Not Held'].indexOf(this.model.get('status')) === -1) {
|
||||
this.dropdownItemList.push({
|
||||
html: this.translate('Set Held', 'labels', this.scope),
|
||||
labelTranslation: `${this.scope}.labels.Set Held`,
|
||||
name: 'setHeld',
|
||||
onClick: () => this.actionSetHeld(),
|
||||
});
|
||||
|
||||
this.dropdownItemList.push({
|
||||
html: this.translate('Set Not Held', 'labels', this.scope),
|
||||
labelTranslation: `${this.scope}.labels.Set Not Held`,
|
||||
name: 'setNotHeld',
|
||||
onClick: () => this.actionSetNotHeld(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user