forked from nextcloud/calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove publish link is calendar publishing is disabled
Related: nextcloud/server#34873 Author-Change-Id: IB#1126264 Signed-off-by: Pawel Boguslawski <[email protected]>
- Loading branch information
1 parent
d78a682
commit 4a9f810
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> | ||
- | ||
|
@@ -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" | ||
|
@@ -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 | ||
* | ||
|