File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
app/code/Magento/Customer/Block/Adminhtml/Group Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public function __construct(
57
57
* Update Save and Delete buttons. Remove Delete button if group can't be deleted.
58
58
*
59
59
* @return void
60
+ * @throws \Magento\Framework\Exception\LocalizedException
61
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
60
62
*/
61
63
protected function _construct ()
62
64
{
@@ -68,6 +70,23 @@ protected function _construct()
68
70
69
71
$ this ->buttonList ->update ('save ' , 'label ' , __ ('Save Customer Group ' ));
70
72
$ this ->buttonList ->update ('delete ' , 'label ' , __ ('Delete Customer Group ' ));
73
+ $ this ->buttonList ->update (
74
+ 'delete ' ,
75
+ 'onclick ' ,
76
+ sprintf (
77
+ "deleteConfirm('%s','%s', %s) " ,
78
+ 'Are you sure? ' ,
79
+ $ this ->getDeleteUrl (),
80
+ json_encode (
81
+ [
82
+ 'action ' => '' ,
83
+ 'data ' => [
84
+ 'form_key ' => $ this ->getFormKey ()
85
+ ]
86
+ ]
87
+ )
88
+ )
89
+ );
71
90
72
91
$ groupId = $ this ->coreRegistry ->registry (RegistryConstants::CURRENT_GROUP_ID );
73
92
if (!$ groupId || $ this ->groupManagement ->isReadonly ($ groupId )) {
You can’t perform that action at this time.
0 commit comments