Loading src/components/Editor/AddTalkModal.vue +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ export default { && (conversation.type === CONVERSATION_TYPE_GROUP || (conversation.type === CONVERSATION_TYPE_PUBLIC && conversation.objectType !== CONVERSATION_OBJECT_TYPE_VIDEO_VERIFICATION)) && conversation.objectType !== CONVERSATION_OBJECT_TYPE_EVENT && conversation.objectType !== CONVERSATION_OBJECT_TYPE_EVENT, ) } catch (error) { console.error('Error fetching Talk conversations:', error) Loading src/components/Editor/Properties/PropertyTextLocation.vue +21 −12 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ <span v-if="!isReadOnly" v-visible="visibleValue" :title="tagPlaceholder" v-on:click="goto" class="icon-externallink"></span> class="icon-externallink" @click="goto" /> <!-- eslint-disable-next-line vue/singleline-html-element-content-newline --> <div v-else v-linkify="{ text: value, linkify: true }" /> Loading @@ -40,7 +40,10 @@ import { Linkify } from '@nextcloud/vue' import InformationVariant from 'vue-material-design-icons/InformationVariant.vue' import PropertyLinksMixin from '../../../mixins/PropertyLinksMixin.js' /** * * @param string */ function isValidHttpUrl(string) { let url try { Loading @@ -51,18 +54,20 @@ function isValidHttpUrl(string) { return url.protocol === 'http:' || url.protocol === 'https:' } /** * * @param el * @param binding */ function setVisibility(el, binding) { el.style.visibility = (binding.value === true) ? 'visible' : 'hidden' } export default { name: 'PropertyTextLocation', data: () => ({ visibleValue: true }), directives: { autosize, linkify, Linkify, InformationVariant, visible: { bind(el, binding) { Loading @@ -76,13 +81,17 @@ export default { }, componentUpdated(el, binding) { setVisibility(el, binding) } }, } }, }, mixins: [ PropertyMixin, PropertyLinksMixin, ], data: () => ({ visibleValue: true, }), computed: { display() { if (this.isReadOnly) { Loading @@ -106,6 +115,9 @@ export default { return this.propModel.defaultNumberOfRows || 1 }, }, mounted() { this.visibleValue = isValidHttpUrl(this.value) }, methods: { changeValue(event) { if (event.target.value.trim() === '') { Loading @@ -121,8 +133,5 @@ export default { window.open(urlval, '_blank').focus() }, }, mounted() { this.visibleValue = isValidHttpUrl(this.value) }, } </script> src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue +2 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ <NcCheckboxRadioSwitch class="repeat-option-set-section__title" type="radio" :name="radioInputId" :modelValue="byMonthDayEnabled" :model-value="byMonthDayEnabled" @update:modelValue="enableByMonthDay" @update:model-value="enableByMonthDay"> {{ $t('calendar', 'By day of the month') }} Loading @@ -29,7 +29,7 @@ <NcCheckboxRadioSwitch class="repeat-option-set-section__title" type="radio" :name="radioInputId" :modelValue="!byMonthDayEnabled" :model-value="!byMonthDayEnabled" @update:modelValue="enableBySetPosition" @update:model-value="enableBySetPosition"> {{ $t('calendar', 'On the') }} Loading src/models/recurrenceRule.js +1 −0 Original line number Diff line number Diff line Loading @@ -117,6 +117,7 @@ const SUPPORTED_BY_MONTH_YEARLY = [...Array(12).keys().map(i => i + 1)] /** * Maps a daily calendar-js recurrence-rule-value to an recurrence-rule-object * * @param recurrenceRuleValue * @return {object} */ const mapDailyRuleValueToRecurrenceRuleObject = (recurrenceRuleValue) => { Loading Loading
src/components/Editor/AddTalkModal.vue +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ export default { && (conversation.type === CONVERSATION_TYPE_GROUP || (conversation.type === CONVERSATION_TYPE_PUBLIC && conversation.objectType !== CONVERSATION_OBJECT_TYPE_VIDEO_VERIFICATION)) && conversation.objectType !== CONVERSATION_OBJECT_TYPE_EVENT && conversation.objectType !== CONVERSATION_OBJECT_TYPE_EVENT, ) } catch (error) { console.error('Error fetching Talk conversations:', error) Loading
src/components/Editor/Properties/PropertyTextLocation.vue +21 −12 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ <span v-if="!isReadOnly" v-visible="visibleValue" :title="tagPlaceholder" v-on:click="goto" class="icon-externallink"></span> class="icon-externallink" @click="goto" /> <!-- eslint-disable-next-line vue/singleline-html-element-content-newline --> <div v-else v-linkify="{ text: value, linkify: true }" /> Loading @@ -40,7 +40,10 @@ import { Linkify } from '@nextcloud/vue' import InformationVariant from 'vue-material-design-icons/InformationVariant.vue' import PropertyLinksMixin from '../../../mixins/PropertyLinksMixin.js' /** * * @param string */ function isValidHttpUrl(string) { let url try { Loading @@ -51,18 +54,20 @@ function isValidHttpUrl(string) { return url.protocol === 'http:' || url.protocol === 'https:' } /** * * @param el * @param binding */ function setVisibility(el, binding) { el.style.visibility = (binding.value === true) ? 'visible' : 'hidden' } export default { name: 'PropertyTextLocation', data: () => ({ visibleValue: true }), directives: { autosize, linkify, Linkify, InformationVariant, visible: { bind(el, binding) { Loading @@ -76,13 +81,17 @@ export default { }, componentUpdated(el, binding) { setVisibility(el, binding) } }, } }, }, mixins: [ PropertyMixin, PropertyLinksMixin, ], data: () => ({ visibleValue: true, }), computed: { display() { if (this.isReadOnly) { Loading @@ -106,6 +115,9 @@ export default { return this.propModel.defaultNumberOfRows || 1 }, }, mounted() { this.visibleValue = isValidHttpUrl(this.value) }, methods: { changeValue(event) { if (event.target.value.trim() === '') { Loading @@ -121,8 +133,5 @@ export default { window.open(urlval, '_blank').focus() }, }, mounted() { this.visibleValue = isValidHttpUrl(this.value) }, } </script>
src/components/Editor/Repeat/RepeatFreqMonthlyOptions.vue +2 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ <NcCheckboxRadioSwitch class="repeat-option-set-section__title" type="radio" :name="radioInputId" :modelValue="byMonthDayEnabled" :model-value="byMonthDayEnabled" @update:modelValue="enableByMonthDay" @update:model-value="enableByMonthDay"> {{ $t('calendar', 'By day of the month') }} Loading @@ -29,7 +29,7 @@ <NcCheckboxRadioSwitch class="repeat-option-set-section__title" type="radio" :name="radioInputId" :modelValue="!byMonthDayEnabled" :model-value="!byMonthDayEnabled" @update:modelValue="enableBySetPosition" @update:model-value="enableBySetPosition"> {{ $t('calendar', 'On the') }} Loading
src/models/recurrenceRule.js +1 −0 Original line number Diff line number Diff line Loading @@ -117,6 +117,7 @@ const SUPPORTED_BY_MONTH_YEARLY = [...Array(12).keys().map(i => i + 1)] /** * Maps a daily calendar-js recurrence-rule-value to an recurrence-rule-object * * @param recurrenceRuleValue * @return {object} */ const mapDailyRuleValueToRecurrenceRuleObject = (recurrenceRuleValue) => { Loading