Skip to content

Commit

Permalink
disabled buttons and removed console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Aug 7, 2024
1 parent 1b18039 commit 631d158
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/views/publications/PublicationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ import { catalogiStore, metadataStore, navigationStore, publicationStore } from
:bold="false"
:active="publicationStore.attachmentId === attachment.id"
:force-display-actions="true"
:details="attachment?.status"
@click="publicationStore.setAttachmentId(attachment.id)">
:details="attachment?.status">
<template #icon>
<CheckCircle v-if="attachment?.status === 'published'"
:class="attachment?.published && 'publishedIcon'"
Expand All @@ -226,37 +225,37 @@ import { catalogiStore, metadataStore, navigationStore, publicationStore } from
{{ attachment?.description }}
</template>
<template #actions>
<NcActionButton @click="publicationStore.setAttachmentItem(attachment); navigationStore.setModal('EditAttachment')">
<NcActionButton disabled @click="publicationStore.setAttachmentItem(attachment); navigationStore.setModal('EditAttachment')">
<template #icon>
<Pencil :size="20" />
</template>
Bewerken
</NcActionButton>
<NcActionButton :disabled="disabled">
<NcActionButton disabled>
<template #icon>
<Download :size="20" />
</template>
Download
</NcActionButton>
<NcActionButton v-if="attachment.status !== 'published'" @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('publishAttachment')">
<NcActionButton v-if="attachment.status !== 'published'" disabled @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('publishAttachment')">
<template #icon>
<Publish :size="20" />
</template>
Publiceren
</NcActionButton>
<NcActionButton v-if="attachment.status === 'published'" @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('depublishAttachment')">
<NcActionButton v-if="attachment.status === 'published'" disabled @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('depublishAttachment')">
<template #icon>
<PublishOff :size="20" />
</template>
Depubliceren
</NcActionButton>
<NcActionButton @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('copyAttachment')">
<NcActionButton disabled @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('copyAttachment')">
<template #icon>
<ContentCopy :size="20" />
</template>
Kopiëren
</NcActionButton>
<NcActionButton @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('deleteAttachment')">
<NcActionButton disabled @click="publicationStore.setAttachmentItem(attachment); navigationStore.setDialog('deleteAttachment')">
<template #icon>
<Delete :size="20" />
</template>
Expand Down

0 comments on commit 631d158

Please sign in to comment.