|
|
@@ -72,8 +72,8 @@
|
|
|
</v-container>
|
|
|
|
|
|
<LayoutDialogTrialAlreadyDid
|
|
|
- :show="showDialogTrialAllReadyDid"
|
|
|
- @close-dialog="showDialogTrialAllReadyDid = false"
|
|
|
+ :show="showDialogTrialAlReadyDid"
|
|
|
+ @close-dialog="showDialogTrialAlReadyDid = false"
|
|
|
/>
|
|
|
|
|
|
</template>
|
|
|
@@ -99,15 +99,17 @@ import Country from "~/models/Core/Country";
|
|
|
import DateUtils from "~/services/utils/dateUtils";
|
|
|
import UrlUtils from "~/services/utils/urlUtils";
|
|
|
import {useApiLegacyRequestService} from "~/composables/data/useApiLegacyRequestService";
|
|
|
+import {useAdminUrl} from "~/composables/utils/useAdminUrl";
|
|
|
|
|
|
//Ref Définition
|
|
|
const runtimeConfig = useRuntimeConfig()
|
|
|
const { fetch, fetchCollection } = useEntityFetch()
|
|
|
const { apiRequestService } = useApiLegacyRequestService()
|
|
|
+const {makeAdminUrl} = useAdminUrl()
|
|
|
const tab = ref(null)
|
|
|
const upcomingPage = ref(1)
|
|
|
const pastPage = ref(1)
|
|
|
-const showDialogTrialAllReadyDid: Ref<boolean> = ref(false)
|
|
|
+const showDialogTrialAlReadyDid: Ref<boolean> = ref(false)
|
|
|
|
|
|
//Fetch
|
|
|
const { data: organization, status:statusOrganization } = fetch(Organization)
|
|
|
@@ -162,15 +164,11 @@ function fetchEvents(past:boolean = false){
|
|
|
async function startTrial() {
|
|
|
try {
|
|
|
await apiRequestService.get('/trial/is_available')
|
|
|
- const v1BaseURL =
|
|
|
- runtimeConfig.baseUrlAdminLegacy ||
|
|
|
- runtimeConfig.public.baseUrlAdminLegacy
|
|
|
- await navigateTo(UrlUtils.join(v1BaseURL, '#', 'trial'), {
|
|
|
+ await navigateTo(makeAdminUrl('trial'), {
|
|
|
external: true,
|
|
|
})
|
|
|
} catch (error) {
|
|
|
- console.log(error)
|
|
|
- showDialogTrialAllReadyDid.value = true
|
|
|
+ showDialogTrialAlReadyDid.value = true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -185,7 +183,7 @@ onUnmounted(() => {
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style scoped lang="scss">
|
|
|
|
|
|
.tabs-title{
|
|
|
margin-top: 20px;
|