+
+
+ Salix
+
+
+ {{ t('Home') }}
+
+
-
-
+
+
{{ t('globals.noPinnedModules') }}
-
+
+
+
+en:
+ Home: Home
+es:
+ Home: Inicio
+
diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue
index 54123d087..025a8a2e2 100644
--- a/src/components/ui/CardDescriptor.vue
+++ b/src/components/ui/CardDescriptor.vue
@@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import axios from 'axios';
import SkeletonDescriptor from 'components/ui/SkeletonDescriptor.vue';
-const props = defineProps({
+const $props = defineProps({
url: {
type: String,
default: '',
@@ -17,6 +17,14 @@ const props = defineProps({
type: String,
required: true,
},
+ title: {
+ type: String,
+ default: '',
+ },
+ subtitle: {
+ type: Number,
+ default: 0,
+ },
});
const slots = useSlots();
@@ -30,15 +38,15 @@ const entity = ref();
async function fetch() {
const params = {};
- if (props.filter) params.filter = JSON.stringify(props.filter);
+ if ($props.filter) params.filter = JSON.stringify($props.filter);
- const { data } = await axios.get(props.url, { params });
+ const { data } = await axios.get($props.url, { params });
entity.value = data;
emit('onFetch', data);
}
-watch(props, async () => {
+watch($props, async () => {
entity.value = null;
await fetch();
});
@@ -49,14 +57,30 @@ watch(props, async () => {