-
-
- {{ t('Go to Salix') }}
-
-
-
-
-en:
- Go to Salix: Go to Salix
-es:
- Go to Salix: Ir a Salix
-
diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue
index 810f63044..a0ef73a1f 100644
--- a/src/components/UserPanel.vue
+++ b/src/components/UserPanel.vue
@@ -87,10 +87,10 @@ async function saveDarkMode(value) {
async function saveLanguage(value) {
const query = `/VnUsers/${user.value.id}`;
try {
- await axios.patch(query, {
- lang: value,
- });
+ await axios.patch(query, { lang: value });
+
user.value.lang = value;
+ useState().setUser(user.value);
onDataSaved();
} catch (error) {
onDataError();
diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue
index 999133130..426f5c716 100644
--- a/src/components/VnTable/VnFilter.vue
+++ b/src/components/VnTable/VnFilter.vue
@@ -32,7 +32,10 @@ const $props = defineProps({
defineExpose({ addFilter, props: $props });
const model = defineModel(undefined, { required: true });
-const arrayData = useArrayData($props.dataKey, { searchUrl: $props.searchUrl });
+const arrayData = useArrayData(
+ $props.dataKey,
+ $props.searchUrl ? { searchUrl: $props.searchUrl } : null
+);
const columnFilter = computed(() => $props.column?.columnFilter);
const updateEvent = { 'update:modelValue': addFilter };
diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue
index e78efa852..7886d0567 100644
--- a/src/components/VnTable/VnTable.vue
+++ b/src/components/VnTable/VnTable.vue
@@ -1,20 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ t(`${chipLocale}.${tag.label}`) }}:
+ {{ formatFn(tag.value) }}
+
+
+
+
diff --git a/test/vitest/__tests__/components/VnTable.spec.js b/src/components/VnTable/__tests__/VnTable.spec.js
similarity index 82%
rename from test/vitest/__tests__/components/VnTable.spec.js
rename to src/components/VnTable/__tests__/VnTable.spec.js
index 162df727d..74ba06987 100644
--- a/test/vitest/__tests__/components/VnTable.spec.js
+++ b/src/components/VnTable/__tests__/VnTable.spec.js
@@ -1,4 +1,4 @@
-import { describe, expect, it, beforeAll, beforeEach } from 'vitest';
+import { describe, expect, it, beforeAll, beforeEach, vi } from 'vitest';
import { createWrapper } from 'app/test/vitest/helper';
import VnTable from 'src/components/VnTable/VnTable.vue';
@@ -13,6 +13,15 @@ describe('VnTable', () => {
},
});
vm = wrapper.vm;
+
+ vi.mock('src/composables/useFilterParams', () => {
+ return {
+ useFilterParams: vi.fn(() => ({
+ params: {},
+ orders: {},
+ })),
+ };
+ });
});
beforeEach(() => (vm.selected = []));
diff --git a/test/vitest/__tests__/components/common/CrudModel.spec.js b/src/components/__tests__/CrudModel.spec.js
similarity index 100%
rename from test/vitest/__tests__/components/common/CrudModel.spec.js
rename to src/components/__tests__/CrudModel.spec.js
diff --git a/test/vitest/__tests__/components/Leftmenu.spec.js b/src/components/__tests__/Leftmenu.spec.js
similarity index 100%
rename from test/vitest/__tests__/components/Leftmenu.spec.js
rename to src/components/__tests__/Leftmenu.spec.js
diff --git a/src/components/common/RightMenu.vue b/src/components/common/RightMenu.vue
index 3aa1891f9..32dc2874d 100644
--- a/src/components/common/RightMenu.vue
+++ b/src/components/common/RightMenu.vue
@@ -2,7 +2,11 @@
import { ref, onMounted, useSlots } from 'vue';
import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore';
+import { useQuasar } from 'quasar';
+const { t } = useI18n();
+const quasar = useQuasar();
+const stateStore = useStateStore();
const slots = useSlots();
const hasContent = ref(false);
const rightPanel = ref(null);
@@ -11,7 +15,6 @@ onMounted(() => {
rightPanel.value = document.querySelector('#right-panel');
if (!rightPanel.value) return;
- // Check if there's content to display
const observer = new MutationObserver(() => {
hasContent.value = rightPanel.value.childNodes.length;
});
@@ -21,12 +24,9 @@ onMounted(() => {
childList: true,
attributes: true,
});
-
- if (!slots['right-panel'] && !hasContent.value) stateStore.rightDrawer = false;
+ if ((!slots['right-panel'] && !hasContent.value) || quasar.platform.is.mobile)
+ stateStore.rightDrawer = false;
});
-
-const { t } = useI18n();
-const stateStore = useStateStore();
@@ -45,7 +45,7 @@ const stateStore = useStateStore();
-