Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 3x 3x 1x 1x 1x | /* global define */ define([ 'underscore', 'oro/translator', 'oro/datagrid/delete-action', 'pim/dialog' ], function(_, __, DeleteAction, Dialog) { 'use strict'; /** * Revoke action with confirm dialog, triggers REST DELETE request * * @export oro/datagrid/revoke-action * @class oro.datagrid.RevokeAction * @extends oro.datagrid.DeleteAction */ return DeleteAction.extend({ getConfirmDialog: function() { const entityCode = this.getEntityCode(); this.confirmModal = Dialog.confirm( __(`pim_enrich.entity.${entityCode}.module.revoke.confirm`), __('pim_common.confirm_revocation'), this.doDelete.bind(this), this.getEntityHint(true) ); return this.confirmModal; }, }); } ); |