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

Unverified Commit 737fd7cd authored by Richard Steinmetz's avatar Richard Steinmetz
Browse files

Run lint:fix

parent 77eff2b0
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ export default {
		/**
		 * Download url of the calendar
		 *
		 * @returns {String}
		 * @return {string}
		 */
		downloadUrl() {
			return this.calendar.url + '?export'
@@ -214,7 +214,7 @@ export default {
		 * Whether or not to display the sharing icon.
		 * It will only be displayed when the calendar is either sharable or publishable
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		showSharingIcon() {
			return this.calendar.canBeShared || this.calendar.canBePublished
@@ -227,7 +227,7 @@ export default {
		 * The sharing icon with high opacity when the calendar is shared
		 * The sharing icon with low opacity when the calendar is neither shared nor published
		 *
		 * @returns {String}
		 * @return {string}
		 */
		sharingIconClass() {
			if (this.isPublished) {
@@ -244,7 +244,7 @@ export default {
		 * Whether or not the calendar is either shared or published
		 * This is used to figure out whether or not to display the Shared label
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		isSharedOrPublished() {
			return this.isShared || this.isPublished
@@ -252,7 +252,7 @@ export default {
		/**
		 * Is the calendar shared?
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		isShared() {
			return !!this.calendar.shares.length
@@ -260,7 +260,7 @@ export default {
		/**
		 * Is the calendar shared with me?
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		isSharedWithMe() {
			return this.calendar.isSharedWithMe
@@ -268,7 +268,7 @@ export default {
		/**
		 * Is the calendar published
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		isPublished() {
			return !!this.calendar.publishURL
@@ -276,7 +276,7 @@ export default {
		/**
		 * TODO: this should use principals and principal.userId
		 *
		 * @returns {String}
		 * @return {string}
		 */
		owner() {
			if (this.calendar.owner.indexOf('principal:principals/users/') === '0') {
@@ -289,7 +289,7 @@ export default {
		/**
		 * Whether or not the information about the owner principal was loaded
		 *
		 * @returns {Boolean}
		 * @return {boolean}
		 */
		loadedOwnerPrincipal() {
			return this.$store.getters.getPrincipalByUrl(this.calendar.owner) !== undefined
+12 −12
Original line number Diff line number Diff line
@@ -73,12 +73,12 @@ export default {
		/**
		 * Share calendar
		 *
		 * @param {Object} data destructuring object
		 * @param {object} data destructuring object
		 * @param {string} data.user the userId
		 * @param {string} data.displayName the displayName
		 * @param {string} data.uri the sharing principalScheme uri
		 * @param {Boolean} data.isGroup is this a group ?
		 * @param {Boolean} data.isCircle is this a circle-group ?
		 * @param {boolean} data.isGroup is this a group ?
		 * @param {boolean} data.isCircle is this a circle-group ?
		 */
		shareCalendar({ user, displayName, uri, isGroup, isCircle }) {
			this.$store.dispatch('shareCalendar', {
@@ -94,7 +94,7 @@ export default {
		/**
		 * Use the cdav client call to find matches to the query from the existing Users & Groups
		 *
		 * @param {String} query
		 * @param {string} query
		 */
		findSharee: debounce(async function(query) {
			const hiddenPrincipalSchemes = []
@@ -131,10 +131,10 @@ export default {
		}, 500),
		/**
		 *
		 * @param {String} query The search query
		 * @param {String[]} hiddenPrincipals A list of principals to exclude from search results
		 * @param {String[]} hiddenUrls A list of urls to exclude from search results
		 * @returns {Promise<Object[]>}
		 * @param {string} query The search query
		 * @param {string[]} hiddenPrincipals A list of principals to exclude from search results
		 * @param {string[]} hiddenUrls A list of urls to exclude from search results
		 * @return {Promise<object[]>}
		 */
		async findShareesFromDav(query, hiddenPrincipals, hiddenUrls) {
			let results
@@ -182,10 +182,10 @@ export default {
		},
		/**
		 *
		 * @param {String} query The search query
		 * @param {String[]} hiddenPrincipals A list of principals to exclude from search results
		 * @param {String[]} hiddenUrls A list of urls to exclude from search results
		 * @returns {Promise<Object[]>}
		 * @param {string} query The search query
		 * @param {string[]} hiddenPrincipals A list of principals to exclude from search results
		 * @param {string[]} hiddenUrls A list of urls to exclude from search results
		 * @return {Promise<object[]>}
		 */
		async findShareesFromCircles(query, hiddenPrincipals, hiddenUrls) {
			let results
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ export default {
		/**
		 * Unshares the calendar from the given sharee
		 *
		 * @returns {Promise<void>}
		 * @return {Promise<void>}
		 */
		async unshare() {
			this.updatingSharee = true
@@ -109,7 +109,7 @@ export default {
		/**
		 * Toggles the write-permission of the share
		 *
		 * @returns {Promise<void>}
		 * @return {Promise<void>}
		 */
		async updatePermission() {
			this.updatingSharee = true
+2 −2
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ export default {
		/**
		 * Download url of the calendar
		 *
		 * @returns {String}
		 * @return {string}
		 */
		downloadUrl() {
			return this.calendar.url + '?export'
@@ -127,7 +127,7 @@ export default {
		/**
		 * TODO: this should use principals and principal.userId
		 *
		 * @returns {String}
		 * @return {string}
		 */
		owner() {
			const lastIndex = this.calendar.owner.lastIndexOf('dav/principals/users/')
+2 −2
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ export default {
		/**
		 * Updates the setting for slot duration
		 *
		 * @param {Object} option The new selected value
		 * @param {object} option The new selected value
		 */
		async changeSlotDuration(option) {
			if (!option) {
@@ -347,7 +347,7 @@ export default {
		/**
		 * Updates the setting for the default reminder
		 *
		 * @param {Object} option The new selected value
		 * @param {object} option The new selected value
		 */
		async changeDefaultReminder(option) {
			if (!option) {
Loading