Skip to content

Commit

Permalink
code review fixes (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koc committed Dec 28, 2023
1 parent bb910b2 commit da853cb
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions src/views/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,23 @@
:force-menu="true"
@close="hideSubActions">
<template v-if="!isDownloadActionOpened">
<NcActionButton v-if="linkedFile.fileId" :close-after-click="true" @click="onReExport">
<template #icon>
<IconRefresh :size="20" />
</template>
{{ t('forms', 'Re-export spreadsheet') }}
</NcActionButton>

<NcActionButton v-if="linkedFile.fileId" :close-after-click="true" @click="unlinkFile">
<template #icon>
<IconLinkVariantOff :size="20" />
</template>
{{ t('forms', 'Unlink spreadsheet') }}
</NcActionButton>
<template v-if="linkedFile.fileId">
<NcActionButton :close-after-click="true" @click="onReExport">
<template #icon>
<IconRefresh :size="20" />
</template>
{{ t('forms', 'Re-export spreadsheet') }}
</NcActionButton>

<NcActionButton :close-after-click="true" @click="unlinkFile">
<template #icon>
<IconLinkVariantOff :size="20" />
</template>
{{ t('forms', 'Unlink spreadsheet') }}
</NcActionButton>

<NcActionSeparator />
</template>

<NcActionButton :close-after-click="true" @click="onStoreToFiles">
<template #icon>
Expand Down Expand Up @@ -229,6 +233,7 @@ import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js'

import IconDelete from 'vue-material-design-icons/Delete.vue'
import IconDownload from 'vue-material-design-icons/Download.vue'
Expand Down Expand Up @@ -330,6 +335,7 @@ export default {
NcButton,
NcEmptyContent,
NcLoadingIcon,
NcActionSeparator,
ResultsSummary,
Submission,
TopBar,
Expand Down

0 comments on commit da853cb

Please sign in to comment.