Skip to content

Commit a969e0c

Browse files
author
Stanislav Idolov
authored
ENGCOM-1975: [Backport] Move buttons definition to separate file #15862
2 parents 5977c7f + 647d83f commit a969e0c

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

app/code/Magento/Ui/view/base/web/js/form/adapter.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44
*/
55
define([
66
'jquery',
7-
'underscore'
8-
], function ($, _) {
7+
'underscore',
8+
'Magento_Ui/js/form/adapter/buttons'
9+
], function ($, _, buttons) {
910
'use strict';
1011

11-
var buttons = {
12-
'reset': '#reset',
13-
'save': '#save',
14-
'saveAndContinue': '#save_and_continue'
15-
},
16-
selectorPrefix = '',
12+
var selectorPrefix = '',
1713
eventPrefix;
1814

1915
/**
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
/**
7+
* @api
8+
*/
9+
define(function () {
10+
'use strict';
11+
12+
return {
13+
'reset': '#reset',
14+
'save': '#save',
15+
'saveAndContinue': '#save_and_continue'
16+
};
17+
});

0 commit comments

Comments
 (0)