Replace cover text links with icons
This commit is contained in:
parent
ef8bb5aca9
commit
56d9223fc4
@ -24,6 +24,8 @@ import {
|
|||||||
faCocktail,
|
faCocktail,
|
||||||
faCoffee,
|
faCoffee,
|
||||||
faCog,
|
faCog,
|
||||||
|
faCopy,
|
||||||
|
faDownload,
|
||||||
faEllipsisH,
|
faEllipsisH,
|
||||||
faEllipsisV,
|
faEllipsisV,
|
||||||
faExclamation,
|
faExclamation,
|
||||||
@ -130,6 +132,8 @@ library.add(faCocktail)
|
|||||||
library.add(faCoffee)
|
library.add(faCoffee)
|
||||||
library.add(faCog)
|
library.add(faCog)
|
||||||
library.add(faComments)
|
library.add(faComments)
|
||||||
|
library.add(faCopy)
|
||||||
|
library.add(faDownload)
|
||||||
library.add(faEllipsisH)
|
library.add(faEllipsisH)
|
||||||
library.add(faEllipsisV)
|
library.add(faEllipsisV)
|
||||||
library.add(faExclamation)
|
library.add(faExclamation)
|
||||||
|
@ -77,14 +77,14 @@
|
|||||||
class="attachment-info-meta-button"
|
class="attachment-info-meta-button"
|
||||||
@click.prevent.stop="downloadAttachment(a)"
|
@click.prevent.stop="downloadAttachment(a)"
|
||||||
>
|
>
|
||||||
{{ $t('misc.download') }}
|
<icon icon="download" />
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
v-tooltip="$t('task.attachment.copyUrlTooltip')"
|
v-tooltip="$t('task.attachment.copyUrlTooltip')"
|
||||||
class="attachment-info-meta-button"
|
class="attachment-info-meta-button"
|
||||||
@click.stop="copyUrl(a)"
|
@click.stop="copyUrl(a)"
|
||||||
>
|
>
|
||||||
{{ $t('task.attachment.copyUrl') }}
|
<icon icon="copy" />
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
v-if="editEnabled"
|
v-if="editEnabled"
|
||||||
@ -92,18 +92,14 @@
|
|||||||
class="attachment-info-meta-button"
|
class="attachment-info-meta-button"
|
||||||
@click.prevent.stop="setAttachmentToDelete(a)"
|
@click.prevent.stop="setAttachmentToDelete(a)"
|
||||||
>
|
>
|
||||||
{{ $t('misc.delete') }}
|
<icon icon="trash-alt" />
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
v-if="editEnabled"
|
v-if="editEnabled"
|
||||||
class="attachment-info-meta-button"
|
class="attachment-info-meta-button"
|
||||||
@click.prevent.stop="setCoverImage(task.coverImageAttachmentId === a.id ? null : a)"
|
@click.prevent.stop="setCoverImage(task.coverImageAttachmentId === a.id ? null : a)"
|
||||||
>
|
>
|
||||||
{{
|
<icon :icon="task.coverImageAttachmentId === a.id ? 'eye-slash' : 'eye'" />
|
||||||
task.coverImageAttachmentId === a.id
|
|
||||||
? $t('task.attachment.unsetAsCover')
|
|
||||||
: $t('task.attachment.setAsCover')
|
|
||||||
}}
|
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -425,6 +421,7 @@ async function setCoverImage(attachment: IAttachment | null) {
|
|||||||
|
|
||||||
.attachment-info-meta-button {
|
.attachment-info-meta-button {
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
|
padding: 0 .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes bounce {
|
@keyframes bounce {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user