Merge pull request 'feat: hide menus' (!1083) from hotfix-hideMenu into master
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1083
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
Javier Segarra 2024-12-13 11:07:53 +00:00
commit 608f881eab
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<script setup>
import { ref, computed } from 'vue';
import { ref, computed, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue';
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
@ -16,6 +16,7 @@ import RightMenu from 'src/components/common/RightMenu.vue';
import MonitorTicketSearchbar from './MonitorTicketSearchbar.vue';
import MonitorTicketFilter from './MonitorTicketFilter.vue';
import TicketProblems from 'src/components/TicketProblems.vue';
import { useStateStore } from 'src/stores/useStateStore';
const DEFAULT_AUTO_REFRESH = 2 * 60 * 1000; // 2min in ms
const { t } = useI18n();
@ -24,6 +25,7 @@ const tableRef = ref(null);
const provinceOpts = ref([]);
const stateOpts = ref([]);
const zoneOpts = ref([]);
const stateStore = useStateStore();
const { viewSummary } = useSummaryDialog();
const [from, to] = dateRange(Date.vnNew());
@ -34,6 +36,11 @@ const stateColors = {
alert: 'negative',
};
onMounted(() => {
stateStore.leftDrawer = false;
stateStore.rightDrawer = false;
});
function exprBuilder(param, value) {
switch (param) {
case 'stateFk':

View File

@ -20,6 +20,7 @@ export default {
path: '',
name: 'MonitorMain',
component: () => import('src/components/common/VnSectionMain.vue'),
props: (route) => ({ leftDrawer: route.name === 'MonitorClientsActions' }),
redirect: { name: 'MonitorTickets' },
children: [
{