0
0
Fork 0

refs #5835 change descriptor menu style

This commit is contained in:
Jorge Penadés 2023-12-01 08:28:05 +01:00
parent f75b81db71
commit 8d04036836
1 changed files with 3 additions and 24 deletions

View File

@ -227,69 +227,48 @@ function triggerMenu(type) {
clickable
@click="triggerMenu('book')"
>
<QItemSection avatar>
<QIcon name="summarize" />
</QItemSection>
<QItemSection>{{ t('To book') }}</QItemSection>
</QItem>
<QSeparator />
<QItem
v-if="hasAny(['administrative'])"
v-ripple
clickable
@click="triggerMenu('delete')"
>
<QItemSection avatar>
<QIcon name="delete" />
</QItemSection>
<QItemSection>{{ t('Delete invoice') }}</QItemSection>
</QItem>
<QSeparator />
<QItem
v-if="hasAny(['administrative'])"
v-ripple
clickable
@click="triggerMenu('clone')"
>
<QItemSection avatar>
<QIcon name="file_copy" />
</QItemSection>
<QItemSection>{{ t('Clone invoice') }}</QItemSection>
</QItem>
<QSeparator />
<QItem
v-if="isAgricultural()"
v-ripple
clickable
@click="triggerMenu('showPdf')"
>
<QItemSection avatar>
<QIcon name="picture_as_pdf" />
</QItemSection>
<QItemSection>{{ t('Show agricultural receipt as PDF') }}</QItemSection>
</QItem>
<QSeparator />
<QItem
v-if="isAgricultural()"
v-ripple
clickable
@click="triggerMenu('sendPdf')"
>
<QItemSection avatar>
<QIcon name="mail" />
</QItemSection>
<QItemSection>{{ t('Send agricultural receipt as PDF') }}</QItemSection>
<QItemSection
>{{ t('Send agricultural receipt as PDF') }}...</QItemSection
>
</QItem>
<QSeparator />
<QItem
v-if="entity.dmsFk"
v-ripple
clickable
@click="downloadFile(entity.dmsFk)"
>
<QItemSection avatar>
<QIcon name="cloud_download" />
</QItemSection>
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
</QItem>
</template>