Vincent 10 달 전
부모
커밋
ca2ea01238
1개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  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-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>
                         </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(){
   try{
@@ -421,6 +420,16 @@ async function startTrial(){
     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>