Skip to content

Commit

Permalink
feat: add share to file menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Dec 5, 2023
1 parent 6019a21 commit 7dba6ec
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main/webapp/src/components/FileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const information = () => {
isInfo.value = true;
};
const share = () => {
currentTab.value = Tabs.Share;
isInfo.value = true;
};
const histories = () => {
currentTab.value = Tabs.Histories;
isInfo.value = true;
Expand All @@ -31,7 +36,14 @@ const download = () => {};
<template>
<v-menu>
<template #activator="{ props }">
<v-btn v-bind="props" icon="fas fa-ellipsis-vertical" :alt="t('button.options')" :size="size" />
<v-btn
v-bind="props"
variant="text"
color="default"
icon="fas fa-ellipsis-vertical"
:alt="t('button.options')"
:size="size"
/>
</template>

<v-list rounded="xl" class="pa-2">
Expand All @@ -41,6 +53,7 @@ const download = () => {};
rounded="xl"
@click="information"
/>
<v-list-item prepend-icon="fas fa-share-nodes" :title="t('menu.item.share')" rounded="xl" @click="share" />
<v-list-item
prepend-icon="fas fa-clock-rotate-left"
:title="t('menu.item.histories')"
Expand Down

0 comments on commit 7dba6ec

Please sign in to comment.