File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
app/code/Magento/Shipping/view/adminhtml/web/js Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright © Magento, Inc. All rights reserved.
3
+ * See COPYING.txt for license details.
4
+ */
5
+
6
+ define ( [
7
+ 'jquery' ,
8
+ 'Magento_Ui/js/modal/modal' ,
9
+ 'mage/translate'
10
+ ] , function ( $ , modal , $t ) {
11
+ 'use strict' ;
12
+
13
+ return function ( config , element ) {
14
+ config . buttons = [
15
+ {
16
+ text : $t ( 'Print' ) ,
17
+ 'class' : 'action action-primary' ,
18
+
19
+ /**
20
+ * Click handler
21
+ */
22
+ click : function ( ) {
23
+ window . location . href = this . options . url ;
24
+ }
25
+ } , {
26
+ text : $t ( 'Cancel' ) ,
27
+ 'class' : 'action action-secondary' ,
28
+
29
+ /**
30
+ * Click handler
31
+ */
32
+ click : function ( ) {
33
+ this . closeModal ( ) ;
34
+ }
35
+ }
36
+ ] ;
37
+ modal ( config , element ) ;
38
+ } ;
39
+ } ) ;
You can’t perform that action at this time.
0 commit comments