Browse Source

fix: sub enable warning

mhsanaei 2 weeks ago
parent
commit
7e9c3bdbaf

+ 1 - 1
web/html/form/client.html

@@ -44,7 +44,7 @@
             <a-select-option v-for="key in USERS_SECURITY" :value="key">[[ key ]]</a-select-option>
             <a-select-option v-for="key in USERS_SECURITY" :value="key">[[ key ]]</a-select-option>
         </a-select>
         </a-select>
     </a-form-item>
     </a-form-item>
-    <a-form-item v-if="client.email && app.subSettings.enable">
+    <a-form-item v-if="client.email && app.subSettings?.enable">
         <template slot="label">
         <template slot="label">
             <a-tooltip>
             <a-tooltip>
                 <template slot="title">
                 <template slot="title">

+ 1 - 1
web/html/modals/client_bulk_modal.html

@@ -39,7 +39,7 @@
                 <a-select-option v-for="key in TLS_FLOW_CONTROL" :value="key">[[ key ]]</a-select-option>
                 <a-select-option v-for="key in TLS_FLOW_CONTROL" :value="key">[[ key ]]</a-select-option>
             </a-select>
             </a-select>
         </a-form-item>
         </a-form-item>
-        <a-form-item v-if="app.subSettings.enable">
+        <a-form-item v-if="app.subSettings?.enable">
             <template slot="label">
             <template slot="label">
                 <a-tooltip>
                 <a-tooltip>
                     <template slot="title">
                     <template slot="title">

+ 1 - 1
web/html/modals/qrcode_modal.html

@@ -21,7 +21,7 @@
     </a-space>
     </a-space>
   </template>
   </template>
   <tr-qr-modal class="qr-modal">
   <tr-qr-modal class="qr-modal">
-    <template v-if="app.subSettings.enable && qrModal.subId">
+    <template v-if="app.subSettings?.enable && qrModal.subId">
       <tr-qr-box class="qr-box">
       <tr-qr-box class="qr-box">
         <a-tag color="purple" class="qr-tag"><span>{{ i18n "pages.settings.subSettings"}}</span></a-tag>
         <a-tag color="purple" class="qr-tag"><span>{{ i18n "pages.settings.subSettings"}}</span></a-tag>
         <tr-qr-bg class="qr-bg-sub">
         <tr-qr-bg class="qr-bg-sub">