Skip to content

Commit 3b01259

Browse files
committed
fixup! feat: Allow or disallow party crasher
1 parent 91ea893 commit 3b01259

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/views/EditFull.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@
244244
:value="color"
245245
@update:value="updateColor" />
246246
<PropertySelect
247+
v-if="showPartyCrasher"
247248
:isReadOnly="isReadOnly || isViewedByOrganizer === false"
248249
:propModel="propPartyCrasher"
249250
:value="partyCrasher"
@@ -384,6 +385,7 @@ import useCalendarObjectInstanceStore from '../store/calendarObjectInstance.js'
384385
import usePrincipalsStore from '../store/principals.js'
385386
import useSettingsStore from '../store/settings.js'
386387
import logger from '../utils/logger.js'
388+
import { isAfterVersion } from '@/utils/nextcloudVersion'
387389
388390
export default {
389391
name: 'EditFull',
@@ -793,6 +795,10 @@ export default {
793795
794796
this.toggleAllDay()
795797
},
798+
799+
showPartyCrasher() {
800+
return isAfterVersion(34)
801+
},
796802
},
797803
}
798804
</script>

0 commit comments

Comments
 (0)