8355-testToMaster #1177

Merged
alexm merged 326 commits from 8355-testToMaster into master 2025-01-07 06:46:55 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 87b5af7060 - Show all commits

View File

@ -17,6 +17,7 @@ import axios from 'axios';
import VnTable from 'src/components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnBtnSelect from 'src/components/common/VnBtnSelect.vue'; import VnBtnSelect from 'src/components/common/VnBtnSelect.vue';
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import useOpenURL from 'src/composables/useOpenURL';
const route = useRoute(); const route = useRoute();
const stateStore = useStateStore(); const stateStore = useStateStore();
@ -127,7 +128,7 @@ const columns = computed(() => [
title: t('Grafana'), title: t('Grafana'),
icon: 'vn:grafana', icon: 'vn:grafana',
isPrimary: true, isPrimary: true,
action: (row) => openGrafana(row.id), action: ({ id }) => openGrafana(id),
}, },
], ],
}, },
@ -199,9 +200,8 @@ const getExpeditionState = async (expedition) => {
}; };
const openGrafana = (expeditionFk) => { const openGrafana = (expeditionFk) => {
window.open( useOpenURL(
`https://grafana.verdnatura.es/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`, `https://grafana.verdnatura.es/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`
'_blank'
); );
}; };