|
|
@@ -16,39 +16,40 @@
|
|
|
<div class="mb-6">
|
|
|
<div>{{ $t('subdomains_history') }} : </div>
|
|
|
<UiLoadingPanel v-if="subdomainsPending" />
|
|
|
- <v-table v-else class="my-2">
|
|
|
- <tbody>
|
|
|
- <tr
|
|
|
- v-for="subdomain in subdomains.items"
|
|
|
- :key="subdomain.id"
|
|
|
- :title="subdomain.subdomain"
|
|
|
- class="subdomainItem"
|
|
|
- @click="goToEditPage(subdomain.id)"
|
|
|
- >
|
|
|
- <td>{{ subdomain.subdomain }}</td>
|
|
|
- <td>
|
|
|
- <span v-if="subdomain.active">
|
|
|
- <v-icon class="text-success icon">
|
|
|
- fa-solid fa-check
|
|
|
- </v-icon> {{ $t('active') }}
|
|
|
- </span>
|
|
|
- </td>
|
|
|
-
|
|
|
- </tr>
|
|
|
-
|
|
|
- </tbody>
|
|
|
-
|
|
|
- </v-table>
|
|
|
-
|
|
|
+ <div v-else>
|
|
|
+ <v-table class="my-2">
|
|
|
+ <tbody>
|
|
|
+ <tr
|
|
|
+ v-for="subdomain in subdomains.items"
|
|
|
+ :key="subdomain.id"
|
|
|
+ :title="subdomain.subdomain"
|
|
|
+ class="subdomainItem"
|
|
|
+ @click="goToEditPage(subdomain.id)"
|
|
|
+ >
|
|
|
+ <td>{{ subdomain.subdomain }}</td>
|
|
|
+ <td>
|
|
|
+ <span v-if="subdomain.active">
|
|
|
+ <v-icon class="text-success icon">
|
|
|
+ fa-solid fa-check
|
|
|
+ </v-icon> {{ $t('active') }}
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+
|
|
|
+ </v-table>
|
|
|
+
|
|
|
+ <v-btn
|
|
|
+ :disabled="!canAddNewSubdomain"
|
|
|
+ class="my-2"
|
|
|
+ @click="onAddSubdomainClick"
|
|
|
+ >
|
|
|
+ {{ $t('record_a_new_subdomain')}}
|
|
|
+ </v-btn>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <v-btn
|
|
|
- :disabled="!canAddNewSubdomain"
|
|
|
- class="my-2"
|
|
|
- @click="onAddSubdomainClick"
|
|
|
- >
|
|
|
- {{ $t('record_a_new_subdomain')}}
|
|
|
- </v-btn>
|
|
|
</v-col>
|
|
|
|
|
|
|
|
|
@@ -97,7 +98,7 @@ const { data: parameters, pending } = fetch(Parameters, organizationProfile.para
|
|
|
|
|
|
const { data: subdomains, pending: subdomainsPending } = fetchCollection(Subdomain, null, ref({ 'organization' : organizationProfile.id }) )
|
|
|
|
|
|
-const canAddNewSubdomain: ComputedRef<boolean> = computed(() => subdomains.value.items.length < 3)
|
|
|
+const canAddNewSubdomain: ComputedRef<boolean> = computed(() => subdomains.value && subdomains.value.items.length < 3)
|
|
|
|
|
|
|
|
|
|