Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b52f97cf authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

fix: unused imports and undefined directive in PropertyTextLocation.vue

parent 328dacfb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+21 −12
Original line number Diff line number Diff line
@@ -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 }" />
@@ -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 {
@@ -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) {
@@ -76,13 +81,17 @@ export default {
			},
			componentUpdated(el, binding) {
				 setVisibility(el, binding)
			}
			},

		}
		},
	},
	mixins: [
		PropertyMixin,
		PropertyLinksMixin,
	],
	data: () => ({
		visibleValue: true,
	}),
	computed: {
		display() {
			if (this.isReadOnly) {
@@ -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() === '') {
@@ -121,8 +133,5 @@ export default {
			window.open(urlval, '_blank').focus()
		},
	},
	mounted() {
		this.visibleValue = isValidHttpUrl(this.value)
	},
}
</script>
+2 −2
Original line number Diff line number Diff line
@@ -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') }}
@@ -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') }}
+1 −0
Original line number Diff line number Diff line
@@ -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) => {