File tree 1 file changed +11
-1
lines changed
src/components/AppNavigation
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
<!--
2
2
- @copyright Copyright (c) 2022 Richard Steinmetz <richard@steinmetz .cloud >
3
+ - @copyright Copyright (c) 2024 Informatyka Boguslawski sp. z o.o. sp.k., https://www.ib.pl/
3
4
-
4
5
- @author Richard Steinmetz <
[email protected] >
5
6
-
49
50
50
51
<div class="edit-calendar-modal__sharing">
51
52
<SharingSearch :calendar="calendar" />
52
- <PublishCalendar :calendar="calendar" />
53
+ <PublishCalendar :calendar="calendar" v-if="canBePublished" />
53
54
<InternalLink :calendar="calendar" />
54
55
<ShareItem v-for="sharee in calendar.shares"
55
56
:key="sharee.uri"
@@ -135,6 +136,15 @@ export default {
135
136
return this.$store.getters.getCalendarById(id)
136
137
},
137
138
139
+ /**
140
+ * Whether to show the publishing action.
141
+ *
142
+ * @return {boolean}
143
+ */
144
+ canBePublished() {
145
+ return this.calendar.canBePublished
146
+ },
147
+
138
148
/**
139
149
* Whether to show the sharing section
140
150
*
You can’t perform that action at this time.
0 commit comments