Skip to content

Commit

Permalink
Remove publish link is calendar publishing is disabled
Browse files Browse the repository at this point in the history
Related: nextcloud/server#34873
Author-Change-Id: IB#1126264
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
  • Loading branch information
pboguslawski committed Jan 10, 2024
1 parent d78a682 commit 4a9f810
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/AppNavigation/EditCalendarModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--
- @copyright Copyright (c) 2022 Richard Steinmetz <richard@steinmetz.cloud>
- @copyright Copyright (c) 2024 Informatyka Boguslawski sp. z o.o. sp.k., https://www.ib.pl/
-
- @author Richard Steinmetz <richard@steinmetz.cloud>
-
Expand Down Expand Up @@ -49,7 +50,7 @@

<div class="edit-calendar-modal__sharing">
<SharingSearch :calendar="calendar" />
<PublishCalendar :calendar="calendar" />
<PublishCalendar :calendar="calendar" v-if="canBePublished" />
<InternalLink :calendar="calendar" />
<ShareItem v-for="sharee in calendar.shares"
:key="sharee.uri"
Expand Down Expand Up @@ -135,6 +136,15 @@ export default {
return this.$store.getters.getCalendarById(id)
},

/**
* Whether to show the publishing action.
*
* @return {boolean}
*/
canBePublished() {
return this.calendar.canBePublished
},

/**
* Whether to show the sharing section
*
Expand Down

0 comments on commit 4a9f810

Please sign in to comment.