+
{{ $t('showing') }}
diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue
index daae6a8b..c6a1af56 100644
--- a/src/pages/04_product-service/MainPage.vue
+++ b/src/pages/04_product-service/MainPage.vue
@@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import { onMounted } from 'vue';
import { getUserId, getRole } from 'src/services/keycloak';
import { storeToRefs } from 'pinia';
-import type { QTableProps } from 'quasar';
+import { useQuasar, type QTableProps } from 'quasar';
import ItemCard from 'components/ItemCard.vue';
import AppBox from 'components/app/AppBox.vue';
import AddButton from 'components/AddButton.vue';
@@ -364,6 +364,7 @@ const tbControl = reactive({
],
},
});
+const $q = useQuasar();
const workItems = ref
([]);
const workNameRef = ref();
@@ -1207,6 +1208,7 @@ onMounted(async () => {
},
},
];
+ modeView.value = $q.screen.lt.md ? true : false;
calculateStats();
await fetchListGroups();
@@ -1271,6 +1273,13 @@ watch(inputSearch, async () => {
watch(inputSearchProductAndService, async () => {
await alternativeFetch();
});
+
+watch(
+ () => $q.screen.lt.md,
+ (v) => {
+ if (v) modeView.value = true;
+ },
+);
@@ -1710,7 +1719,7 @@ watch(inputSearchProductAndService, async () => {
:hide-dropdown-icon="$q.screen.lt.sm"
:display-value="$t('displayField')"
v-model="tbControl.groupAndType.fieldSelected"
- class="col q-mx-sm"
+ class="col q-ml-sm"
option-label="label"
option-value="value"
map-options
@@ -1724,7 +1733,7 @@ watch(inputSearchProductAndService, async () => {
v-model="modeView"
id="btn-mode"
dense
- class="no-shadow bordered rounded surface-1"
+ class="no-shadow bordered rounded surface-1 q-ml-sm"
:toggle-color="$q.dark.isActive ? 'grey-9' : 'grey-2'"
size="xs"
:options="[
@@ -2114,7 +2123,7 @@ watch(inputSearchProductAndService, async () => {
-
+
{
>
-
+
{{ $t('showing') }}
@@ -2290,7 +2303,11 @@ watch(inputSearchProductAndService, async () => {
>
-
+
{{ $t('showing') }}
@@ -2428,9 +2445,10 @@ watch(inputSearchProductAndService, async () => {