Vincent 10 months ago
parent
commit
ca2ea01238
1 changed files with 12 additions and 3 deletions
  1. 12 3
      pages/subscription.vue

+ 12 - 3
pages/subscription.vue

@@ -153,8 +153,7 @@ Page 'Mon abonnement'
                       <v-col cols="12" v-if="!organizationProfile.isArtistPremiumProduct && (accessProfileStore.isAdmin || accessProfileStore.isCaMember)">
                       <v-col cols="12" v-if="!organizationProfile.isArtistPremiumProduct && (accessProfileStore.isAdmin || accessProfileStore.isCaMember)">
                         <v-btn
                         <v-btn
                           class="theme-artist btn"
                           class="theme-artist btn"
-                          href="https://logiciels.opentalent.fr/opentalent-artist"
-                          target="_blank"
+                          @click="subscription"
                         >
                         >
                           Souscrire à l'offre <i class="fa-solid fa-greater-than small"></i>
                           Souscrire à l'offre <i class="fa-solid fa-greater-than small"></i>
                         </v-btn>
                         </v-btn>
@@ -404,7 +403,7 @@ function getMobytInformations(): Record<Ref<MobytUserStatus | null>, Ref<boolean
 
 
 
 
 /**
 /**
- *
+ * Action lorsque l'on souhaite démarrer l'essai
  */
  */
 async function startTrial(){
 async function startTrial(){
   try{
   try{
@@ -421,6 +420,16 @@ async function startTrial(){
     showDialog.value = true
     showDialog.value = true
   }
   }
 }
 }
+
+/**
+ * Action lorsque l'on souhaite souscrire à artist premium
+ */
+async function subscription(){
+  const v1BaseURL = runtimeConfig.baseUrlAdminLegacy || runtimeConfig.public.baseUrlAdminLegacy
+  await navigateTo(UrlUtils.join(v1BaseURL, '#', 'trial/subscribe'), {
+    external: true
+  })
+}
 </script>
 </script>