Olivier Massot 5 달 전
부모
커밋
d8dcaac31e
3개의 변경된 파일18개의 추가작업 그리고 23개의 파일을 삭제
  1. 2 8
      components/Layout/MobytStatus.vue
  2. 13 13
      config/abilities/pages/myAccount.yaml
  3. 3 2
      pages/subscription.vue

+ 2 - 8
components/Layout/MobytStatus.vue

@@ -1,11 +1,7 @@
 <template>
   <v-col cols="12" lg="12">
     <strong>{{ $t('remaining_sms_credit') }}</strong> -
-    <span
-      v-if="
-        !mobytPending && mobytStatus !== null && mobytStatus.active
-      "
-    >
+    <span v-if="!mobytPending && mobytStatus !== null && mobytStatus.active">
       {{
         mobytStatus.money.toLocaleString($i18n.locale, {
           style: 'currency',
@@ -40,6 +36,4 @@ const { data: mobytStatus, pending: mobytPending } = fetch(
 ) as AsyncData<MobytUserStatus | null, Error | null>
 </script>
 
-<style scoped lang="scss">
-
-</style>
+<style scoped lang="scss"></style>

+ 13 - 13
config/abilities/pages/myAccount.yaml

@@ -93,20 +93,20 @@ subscription_page_sms_section:
   action: 'display'
   conditions:
     - {
-      function: organizationHasAllModules,
-      parameters: ['GeneralConfig', 'Sms'],
-    }
+        function: organizationHasAllModules,
+        parameters: ['GeneralConfig', 'Sms'],
+      }
     - {
-      function: accessHasAnyProfile,
-      parameters:
-        [
-          'admin',
-          'administratifManager',
-          'pedagogicManager',
-          'financialManager',
-          'caMember',
-        ],
-    }
+        function: accessHasAnyProfile,
+        parameters:
+          [
+            'admin',
+            'administratifManager',
+            'pedagogicManager',
+            'financialManager',
+            'caMember',
+          ],
+      }
 
 my_bills_page:
   action: 'display'

+ 3 - 2
pages/subscription.vue

@@ -41,7 +41,9 @@ Page 'Mon abonnement'
                 {{ $d(line.dateEnd) }}
               </v-col>
 
-              <LayoutMobytStatus v-if="ability.can('display', 'subscription_page_sms_section')" />
+              <LayoutMobytStatus
+                v-if="ability.can('display', 'subscription_page_sms_section')"
+              />
             </v-row>
           </v-container>
         </UiExpansionPanel>
@@ -581,7 +583,6 @@ function getOrganizationProfile() {
   return organizationProfile
 }
 
-
 /**
  * Action lorsque l'on souhaite démarrer l'essai
  */