Browse Source

typescript fixes

Olivier Massot 8 months ago
parent
commit
44152ad890
1 changed files with 7 additions and 6 deletions
  1. 7 6
      pages/subscription.vue

+ 7 - 6
pages/subscription.vue

@@ -112,7 +112,7 @@ Page 'Mon abonnement'
                 <LayoutPagesSubscriptionCard
                 class="artistCard"
                 title="Logiciel Artist Standard"
-                :extraHeader="organizationProfile.isArtistProduct ? 'Votre version' : false"
+                :extraHeader="organizationProfile.isArtistProduct ? 'Votre version' : undefined"
                 color="artist"
                 :list="listCheck.artist"
               >
@@ -200,7 +200,7 @@ Page 'Mon abonnement'
                     organizationProfile.isSchoolPremiumProduct ? 'Logiciel School Premium' : 'Logiciel School Standard'
                   )"
                   :subTitle="!organizationProfile.isSchool ? 'Sur devis' : ''"
-                  :extraHeader="organizationProfile.isSchool ? 'Votre version' : false"
+                  :extraHeader="organizationProfile.isSchool ? 'Votre version' : undefined"
                   color="school"
                   :list="listCheck.school"
                 >
@@ -330,7 +330,7 @@ const showDialogTrialStopConfirmation: Ref<boolean> = ref(false)
 const openedPanels: Ref<Array<string>> = initPanel()
 const organizationProfile = getOrganizationProfile()
 const accessProfileStore = useAccessProfileStore()
-const {mobytStatus, mobytPending}: Record<Ref<MobytUserStatus | null>, Ref<boolean>> = getMobytInformations()
+const { mobytStatus, mobytPending } = getMobytInformations()
 
 const {data: dolibarrAccount, pending: dolibarrPending} = fetch(
   DolibarrAccount,
@@ -411,7 +411,7 @@ function getOrganizationProfile() {
 /**
  * Récupération des informations Mobyt
  */
-function getMobytInformations(): Record<Ref<MobytUserStatus | null>, Ref<boolean>> {
+function getMobytInformations(): { mobytStatus: Ref<MobytUserStatus | null>; mobytPending: Ref<boolean> } {
   let mobytStatus: Ref<MobytUserStatus | null> = ref(null)
   let mobytPending: Ref<boolean> = ref(false)
 
@@ -423,7 +423,8 @@ function getMobytInformations(): Record<Ref<MobytUserStatus | null>, Ref<boolean
     mobytStatus = data
     mobytPending = pending
   }
-  return {mobytStatus, mobytPending}
+
+  return { mobytStatus, mobytPending }
 }
 
 
@@ -541,7 +542,7 @@ const downloadDolibarrBill = (ref: string): void => {
 
 .optionsCard{
   :deep(.margin-sup){
-    margin-top: 0px;
+    margin-top: 0;
   }
 }