Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sorting and wording of contact picture actions #1448

Merged
merged 1 commit into from
Jan 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/ContactDetails/ContactDetailsAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
@close="toggleModal">
<template #actions>
<ActionButton v-if="!isReadOnly" icon="icon-upload" @click="selectFileInput">
{{ t('contacts', 'Upload a new picture') }}
{{ t('contacts', 'Upload new picture') }}
</ActionButton>
<ActionButton v-if="!isReadOnly" icon="icon-picture" @click="selectFilePicker">
<ActionButton v-if="!isReadOnly" icon="icon-folder" @click="selectFilePicker">
{{ t('contacts', 'Choose from files') }}
</ActionButton>
<ActionButton v-if="!isReadOnly" icon="icon-delete" @click="removePhoto">
{{ t('contacts', 'Delete picture') }}
</ActionButton>
<ActionLink :href="`${contact.url}?photo`" icon="icon-download" target="_blank">
{{ t('contacts', 'Download picture') }}
</ActionLink>
<ActionButton v-if="!isReadOnly" icon="icon-delete" @click="removePhoto">
{{ t('contacts', 'Delete picture') }}
</ActionButton>
</template>
<img ref="img"
:src="contact.photoUrl"
Expand Down