This commit is contained in:
parent
6c1bad1cf5
commit
5462d3ce9a
|
@ -19,16 +19,17 @@ const $props = defineProps({
|
|||
default: null,
|
||||
},
|
||||
});
|
||||
|
||||
const isLoading = ref(false);
|
||||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
|
||||
const entityId = computed(() => {
|
||||
return $props.id || route.params.id;
|
||||
});
|
||||
isLoading.value = true;
|
||||
|
||||
const data = ref(useCardDescription());
|
||||
const setData = (entity) => (data.value = useCardDescription(entity.name, entity.id));
|
||||
isLoading.value = false;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -121,6 +122,11 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity
|
|||
</QCardActions>
|
||||
</template>
|
||||
</CardDescriptor>
|
||||
<QInnerLoading
|
||||
:label="t('globals.pleaseWait')"
|
||||
:showing="isLoading"
|
||||
color="primary"
|
||||
/>
|
||||
</template>
|
||||
<i18n>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue