Skip to content

Commit 1c4e010

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-54634' into bugfixes
2 parents 2782995 + 4f8354c commit 1c4e010

File tree

8 files changed

+97
-112
lines changed

8 files changed

+97
-112
lines changed

app/code/Magento/Integration/Block/Adminhtml/Widget/Grid/Column/Renderer/Name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function render(\Magento\Framework\DataObject $row)
2323
/** @var \Magento\Integration\Model\Integration $row */
2424
$text = parent::render($row);
2525
if (!$this->isUrlSecure($row->getEndpoint()) || !$this->isUrlSecure($row->getIdentityLinkUrl())) {
26-
$text .= '<span class="icon-error"><span>Integration not secure</span></span>';
26+
$text .= '<span class="security-notice"><span>' . __("Integration not secure") . '</span></span>';
2727
}
2828
return $text;
2929
}

app/code/Magento/Integration/Test/Unit/Block/Adminhtml/Widget/Grid/Column/Renderer/NameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function endpointDataProvider()
101101
[
102102
'http://myurl',
103103
'Custom Integration',
104-
'Custom Integration<span class="icon-error"><span>Integration not secure</span></span>'
104+
'Custom Integration<span class="security-notice"><span>Integration not secure</span></span>'
105105
]
106106
];
107107
}

app/code/Magento/Integration/view/adminhtml/layout/adminhtml_integration_index.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
*/
99
-->
1010
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
11-
<head>
12-
<css src="Magento_Integration::integration.css"/>
13-
</head>
1411
<update handle="adminhtml_integration_grid_block"/>
1512
<body>
1613
<referenceBlock name="content">

app/code/Magento/Integration/view/adminhtml/layout/adminhtml_integration_new.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9-
<head>
10-
<css src="Magento_Integration::integration.css"/>
11-
</head>
129
<update handle="adminhtml_integration_edit"/>
1310
<body>
1411
<referenceBlock name="content">

app/code/Magento/Integration/view/adminhtml/templates/integration/activate/permissions.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
<div id="integration-activate-permissions-tabs">
1515
<?php echo $block->getChildHtml('tabs'); ?>
1616
</div>
17-
<div id="integrations-activate-permissions-content"></div>
17+
<div id="integrations-activate-permissions-content"></div>

app/code/Magento/Integration/view/adminhtml/templates/integration/activate/permissions/tab/webapi.phtml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,20 @@
2424
</fieldset>
2525
<?php if (!$block->isTreeEmpty()): ?>
2626
<script>
27-
require(["jquery", "Magento_User/js/roles-tree"], function($){
27+
require(["jquery", "Magento_User/js/roles-tree"], function($){
28+
$.widget('mage.rolesTree', $.mage.rolesTree, {
29+
_checkNode: function(event) {},
30+
_checkNodes: function() {
31+
this._super();
32+
this.element.jstree('disable_hotkeys').jstree('hide_checkboxes')
33+
.find('li.jstree-unchecked').hide().end().find('li.jstree-checked').attr('rel', 'disabled');
34+
}
35+
});
2836

29-
$.widget('mage.rolesTree', $.mage.rolesTree, {
30-
_checkNode: function(event) {},
31-
_checkNodes: function() {
32-
this._super();
33-
this.element.jstree('disable_hotkeys').jstree('hide_checkboxes')
34-
.find('li.jstree-unchecked').hide().end().find('li.jstree-checked').attr('rel', 'disabled');
35-
}
36-
});
37-
38-
$('[data-role="resource-tree"]').rolesTree({
39-
'treeInitData': <?php /* @escapeNotVerified */ echo $block->getResourcesTreeJson() ?>,
40-
'treeInitSelectedData': <?php /* @escapeNotVerified */ echo $block->getSelectedResourcesJson() ?>
41-
});
42-
43-
});
44-
</script>
37+
$('[data-role="resource-tree"]').rolesTree({
38+
'treeInitData': <?php /* @escapeNotVerified */ echo $block->getResourcesTreeJson() ?>,
39+
'treeInitSelectedData': <?php /* @escapeNotVerified */ echo $block->getSelectedResourcesJson() ?>
40+
});
41+
});
42+
</script>
4543
<?php endif ?>

app/code/Magento/Integration/view/adminhtml/web/integration.css

Lines changed: 0 additions & 86 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// /**
2+
// * Copyright © 2016 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.adminhtml-integration-index {
7+
.data-grid {
8+
.action {
9+
&:extend(.abs-action-reset all);
10+
11+
&[disabled] {
12+
color: @color-gray-light2;
13+
cursor: not-allowed;
14+
opacity: 0.6;
15+
}
16+
17+
&:hover {
18+
&:before {
19+
color: @color-gray-middle3;
20+
}
21+
}
22+
23+
&:before {
24+
&:extend(.abs-icon all);
25+
}
26+
27+
&.edit {
28+
&:before {
29+
content: @icon-edit__content;
30+
}
31+
}
32+
33+
&.info {
34+
&:before {
35+
content: @icon-info__content;
36+
}
37+
}
38+
39+
&.delete {
40+
&:before {
41+
content: @icon-delete__content;
42+
}
43+
}
44+
}
45+
}
46+
47+
.security-notice {
48+
color: @color-red11;
49+
font-size: @font-size__tiny;
50+
margin-left: 1.5rem;
51+
vertical-align: middle;
52+
53+
&:before {
54+
&:extend(.abs-icon all);
55+
content: @icon-warning__content;
56+
margin-right: @indent__xs;
57+
}
58+
}
59+
60+
input[readonly] {
61+
cursor: copy;
62+
}
63+
64+
.ui-dialog {
65+
.ui-dialog-buttonpane {
66+
float: none;
67+
68+
.ui-dialog-buttonset {
69+
text-align: right;
70+
}
71+
}
72+
}
73+
74+
.no-close {
75+
.ui-dialog-titlebar-close {
76+
display: none;
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)