Ver código fonte

fix error message on subscription page for user with no sms option

Olivier Massot 3 anos atrás
pai
commit
4882c29e6c
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      pages/subscription.vue

+ 2 - 3
pages/subscription.vue

@@ -32,7 +32,7 @@ Page 'Mon abonnement'
                       </div>
                     </td>
                   </tr>
-                  <tr v-if="show_sms_row">
+                  <tr v-if="$can('manage', 'texto')">
                     <td>{{ $t('remaining_sms_credit') }}</td>
                     <td>
                       <UiTemplateMobytStatus @disabled_sms_row="show_sms_row = false"/>
@@ -301,8 +301,7 @@ export default defineComponent({
     return {
       organizationProfile,
       dolibarrAccount,
-      dolibarrAccountFetch: fetchState,
-      show_sms_row: true
+      dolibarrAccountFetch: fetchState
     }
   },
   methods: {