0
0
Fork 0

refs #5293 sections in a array

This commit is contained in:
Alexandre Riera 2023-04-17 12:18:37 +02:00
parent d210138fff
commit b6fedd3873
1 changed files with 10 additions and 35 deletions

View File

@ -21,6 +21,12 @@ const $props = defineProps({
const entityId = computed(() => {
return $props.id || route.params.id;
});
const claimSections = [
{ name: 'Details', url: '/detail' },
{ name: 'Notes', url: '/note/index' },
{ name: 'Development', url: '/development' },
{ name: 'Action', url: '/action' },
];
let salixUrl;
onMounted(async () => {
@ -48,48 +54,17 @@ function openNewTab(url) {
<QSeparator />
<QList>
<QItem
v-for="section in claimSections"
:key="section.name"
active-class="text-primary"
@click="openNewTab(salixUrl + '/detail')"
@click="openNewTab(salixUrl + section.url)"
clickable
v-ripple
>
<QItemSection avatar>
<QIcon name="disabled_by_default" />
</QItemSection>
<QItemSection> {{ t('Details') }} </QItemSection>
</QItem>
<QItem
active-class="text-primary"
@click="openNewTab(salixUrl + '/note/index')"
clickable
v-ripple
>
<QItemSection avatar>
<QIcon name="disabled_by_default" />
</QItemSection>
<QItemSection> {{ t('Notes') }} </QItemSection>
</QItem>
<QItem
active-class="text-primary"
@click="openNewTab(salixUrl + '/development')"
clickable
v-ripple
>
<QItemSection avatar>
<QIcon name="disabled_by_default" />
</QItemSection>
<QItemSection> {{ t('Development') }} </QItemSection>
</QItem>
<QItem
active-class="text-primary"
@click="openNewTab(salixUrl + '/action')"
clickable
v-ripple
>
<QItemSection avatar>
<QIcon name="disabled_by_default" />
</QItemSection>
<QItemSection> {{ t('Action') }} </QItemSection>
<QItemSection> {{ t(section.name) }} </QItemSection>
</QItem>
</QList>
</QScrollArea>