Skip to content

Commit 64aa3b9

Browse files
author
Joan He
committed
Merge remote-tracking branch 'trigger/MAGETWO-95248' into BugFixPR
2 parents a29dbc0 + 7cd0eab commit 64aa3b9

File tree

1 file changed

+39
-0
lines changed
  • app/code/Magento/Shipping/view/adminhtml/web/js

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
});

0 commit comments

Comments
 (0)