Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
authorEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:35:25 +0000 (15:35 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:35:25 +0000 (15:35 +0800)
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

index 41168b8..d1eb048 100644 (file)
        "$ xns" : "Roo.bootstrap",
        "items" : [
         {
-         "xtype" : "Row",
-         "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "xtype" : "Column",
-           "Number xs" : 12,
-           "$ xns" : "Roo.bootstrap",
-           "items" : [
-            {
-             "xtype" : "Container",
-             "$ xns" : "Roo.bootstrap",
-             "String well" : "sm",
-             "String html" : "<ol class='qr-list' start=\"1\">\n    <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Row",
+         "xtype" : "Container",
          "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "String cls" : "text-center",
-           "xtype" : "Column",
-           "Number xs" : 12,
-           "$ xns" : "Roo.bootstrap",
-           "items" : [
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n    _this.qrcode_image = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n}"
-             },
-             "Boolean imgResponsive" : false,
-             "String cls" : "qr-code",
-             "xtype" : "Img",
-             "String src" : "about:blank",
-             "$ xns" : "Roo.bootstrap"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Row",
-         "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "xtype" : "Column",
-           "Number xs" : 12,
-           "$ xns" : "Roo.bootstrap",
-           "items" : [
-            {
-             "xtype" : "Container",
-             "$ xns" : "Roo.bootstrap",
-             "String well" : "sm",
-             "String html" : "<ol class='qr-list' start=\"2\">\n    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>\n</ol>"
-            }
-           ]
-          }
-         ]
+         "String well" : "sm",
+         "String html" : "<ol class='qr-list' start=\"1\">\n    <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>"
         }
        ]
       }
index 92684d2..83d73ab 100644 (file)
@@ -173,89 +173,15 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, {
         '|xns' : 'Roo.bootstrap',
         items  : [
          {
-          xtype : 'Row',
-          xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap',
-          items  : [
-           {
-            xtype : 'Column',
-            xs : 12,
-            xns : Roo.bootstrap,
-            '|xns' : 'Roo.bootstrap',
-            items  : [
-             {
-              xtype : 'Container',
-              html : _this._strings['dc7b0c7f9d3941532bda06cd58eec7bd'] /* 
-              <ol class='qr-list' start="1">              
-    <li>Open Google Authenticator in your phone, and scan this QR code.</li>              
+          xtype : 'Container',
+          html : _this._strings['dc7b0c7f9d3941532bda06cd58eec7bd'] /* 
+          <ol class='qr-list' start="1">          
+    <li>Open Google Authenticator in your phone, and scan this QR code.</li>          
 </ol>
-              */ ,
-              well : 'sm',
-              xns : Roo.bootstrap,
-              '|xns' : 'Roo.bootstrap'
-             }
-            ]
-           }
-          ]
-         },
-         {
-          xtype : 'Row',
+          */ ,
+          well : 'sm',
           xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap',
-          items  : [
-           {
-            xtype : 'Column',
-            cls : 'text-center',
-            xs : 12,
-            xns : Roo.bootstrap,
-            '|xns' : 'Roo.bootstrap',
-            items  : [
-             {
-              xtype : 'Img',
-              cls : 'qr-code',
-              imgResponsive : false,
-              src : 'about:blank',
-              listeners : {
-               render : function (_self)
-                {
-                    _this.qrcode_image = this;
-                    
-                    this.el.setVisibilityMode(Roo.Element.DISPLAY);
-                    
-                }
-              },
-              xns : Roo.bootstrap,
-              '|xns' : 'Roo.bootstrap'
-             }
-            ]
-           }
-          ]
-         },
-         {
-          xtype : 'Row',
-          xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap',
-          items  : [
-           {
-            xtype : 'Column',
-            xs : 12,
-            xns : Roo.bootstrap,
-            '|xns' : 'Roo.bootstrap',
-            items  : [
-             {
-              xtype : 'Container',
-              html : _this._strings['5d412a3d8de0189df31c8f331e2e6630'] /* 
-              <ol class='qr-list' start="2">              
-    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>              
-</ol>
-              */ ,
-              well : 'sm',
-              xns : Roo.bootstrap,
-              '|xns' : 'Roo.bootstrap'
-             }
-            ]
-           }
-          ]
+          '|xns' : 'Roo.bootstrap'
          }
         ]
        }