Skip to content

Commit

Permalink
Move download button above delete button
Browse files Browse the repository at this point in the history
Signed-off-by: Robbert Gurdeep Singh <git@beardhatcode.be>
  • Loading branch information
beardhatcode committed Mar 27, 2021
1 parent c869bd1 commit 080ab2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@
@click="showSidebar">
{{ t('viewer', 'Open sidebar') }}
</ActionButton>
<ActionLink
icon="icon-download"
:close-after-click="true"
:href="currentFile.davPath">
{{ t('viewer', 'Download') }}
</ActionLink>
<ActionButton
v-if="canDelete"
:close-after-click="true"
icon="icon-delete"
@click="onDelete">
{{ t('viewer', 'Delete') }}
</ActionButton>
<ActionLink
icon="icon-download"
:close-after-click="true"
:href="currentFile.davPath">
{{ t('viewer', 'Download') }}
</ActionLink>
</template>

<div class="viewer__content" @click.self.exact="close">
Expand Down

0 comments on commit 080ab2d

Please sign in to comment.