|
@@ -16,18 +16,30 @@
|
|
|
<div class="mb-6">
|
|
<div class="mb-6">
|
|
|
<div>{{ $t('subdomains_history') }} : </div>
|
|
<div>{{ $t('subdomains_history') }} : </div>
|
|
|
<UiLoadingPanel v-if="subdomainsPending" />
|
|
<UiLoadingPanel v-if="subdomainsPending" />
|
|
|
- <v-list
|
|
|
|
|
- v-else
|
|
|
|
|
- :items="subdomains.items"
|
|
|
|
|
- item-value="id"
|
|
|
|
|
- item-title="subdomain"
|
|
|
|
|
- density="compact"
|
|
|
|
|
- bg-color="transparent"
|
|
|
|
|
- >
|
|
|
|
|
- <template #prepend>
|
|
|
|
|
- <v-icon icon="fas fa-circle" style="font-size: 5px;"/>
|
|
|
|
|
- </template>
|
|
|
|
|
- </v-list>
|
|
|
|
|
|
|
+ <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>
|
|
</div>
|
|
|
|
|
|
|
|
<v-btn
|
|
<v-btn
|
|
@@ -70,6 +82,8 @@ import {AsyncData} from "#app";
|
|
|
import Subdomain from "~/models/Organization/Subdomain";
|
|
import Subdomain from "~/models/Organization/Subdomain";
|
|
|
import ApiResource from "~/models/ApiResource";
|
|
import ApiResource from "~/models/ApiResource";
|
|
|
|
|
|
|
|
|
|
+const router = useRouter()
|
|
|
|
|
+
|
|
|
const { fetch, fetchCollection } = useEntityFetch()
|
|
const { fetch, fetchCollection } = useEntityFetch()
|
|
|
|
|
|
|
|
const organizationProfile = useOrganizationProfileStore()
|
|
const organizationProfile = useOrganizationProfileStore()
|
|
@@ -87,7 +101,9 @@ const canAddNewSubdomain: ComputedRef<boolean> = computed(() => subdomains.value
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+const goToEditPage = (id: number) => {
|
|
|
|
|
+ router.push(`parameters/subdomains/${id}`)
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const onAddSubdomainClick = () => {
|
|
const onAddSubdomainClick = () => {
|
|
|
if (!canAddNewSubdomain) {
|
|
if (!canAddNewSubdomain) {
|
|
@@ -100,5 +116,17 @@ const onAddSubdomainClick = () => {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
|
+.v-table {
|
|
|
|
|
+ background: transparent;
|
|
|
|
|
+}
|
|
|
|
|
+.subdomainItem {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
|
|
+.subdomainItem:hover {
|
|
|
|
|
+ background: rgb(var(--v-theme-neutral));
|
|
|
|
|
+}
|
|
|
|
|
+.subdomainItem .icon {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|