Skip to content

Commit

Permalink
Module
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinicius committed May 29, 2023
1 parent 36a3cd8 commit da3357f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"Customer Group"
],
"type": "magento2-module",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
{
"name": "Vinicius Borges",
Expand Down
24 changes: 10 additions & 14 deletions view/adminhtml/templates/system/config/changeCustomerGroupBtn.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,17 @@ use Vbdev\SwitchCustomerGroup\Block\System\Config\ChangeCustomerGroupBtn;
</div>

<?php if ($block->getEnabled()): ?>
<div id="change-btn" data-bind="scope:'import'">
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"*": {
"Vbdev_SwitchCustomerGroup/js/button/changegroup": {}
}
<script type="text/x-magento-init">
{
"*": {
"Vbdev_SwitchCustomerGroup/js/button/changegroup": {}
}

</script>
<script>
window.ajaxUrl = '<?= /* @noEscape */ $block->getAjaxUrl() ?>';
window.formKey = '<?= /* @noEscape */ $block->getFormKey() ?>';
</script>
</div>
}
</script>
<script>
window.ajaxUrl = '<?= /* @noEscape */ $block->getAjaxUrl() ?>';
window.formKey = '<?= /* @noEscape */ $block->getFormKey() ?>';
</script>
<?php endif; ?>


0 comments on commit da3357f

Please sign in to comment.