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 | 463x 463x 463x 463x 24x 463x 463x | const __ = require('oro/translator');
const Dialog = require('pim/dialog');
/**
* Delete Confirm modal for datagrid
*
* @author Pierre Allard <pierre.allard@akeneo.com>
* @copyright 2019 Akeneo SAS (http://www.akeneo.com)
*/
class DeleteConfirm {
/**
* Returns a confirm modal
*
* @param {string} entityCode
* @param {any} callback
* @param {string} entityHint
* @return {Promise}
*/
public static getConfirmDialog(
entityCode: string,
callback: any,
entityHint: string
) {
return Dialog.confirmDelete(
__(`pim_enrich.entity.${entityCode}.module.delete.confirm`),
__('pim_common.confirm_deletion'),
callback,
entityHint
);
}
}
export = DeleteConfirm;
|