diff --git a/app/code/Magento/Integration/view/adminhtml/web/js/integration.js b/app/code/Magento/Integration/view/adminhtml/web/js/integration.js
index 387831e492d7fb2e6de30ec94785364d9d6d819d..3e299ddf77e45aacd9d480d355dea456157689d7 100644
--- a/app/code/Magento/Integration/view/adminhtml/web/js/integration.js
+++ b/app/code/Magento/Integration/view/adminhtml/web/js/integration.js
@@ -331,7 +331,7 @@ define([
                             click: function () {
                                 // Find the 'Allow' button and clone - it has all necessary data, but is going to be
                                 // destroyed along with the current dialog
-                                var ctx = $(this).parent().find('button.primary').clone(true);
+                                var ctx = $(this).parent().find('button.action-primary').clone(true);
                                 $(this).dialog('destroy');
                                 // Make popup out of data we saved from 'Allow' button
                                 window.integration.popup.show(ctx);