refs #6787 isLoading #180

Merged
carlossa merged 4 commits from 6787-loadingDescriptor into dev 2024-02-16 13:06:06 +00:00
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 5462d3ce9a - Show all commits

View File

@ -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>
{