mirror of https://github.com/nextcloud/contacts
chore(eslint): fix all errors
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
de20d0e67d
commit
5bc382bcef
|
@ -132,7 +132,7 @@ export default {
|
|||
this.enableSocialSyncLoading = false
|
||||
}
|
||||
},
|
||||
onLoad(event) {
|
||||
onLoad() {
|
||||
this.$emit('file-loaded', false)
|
||||
},
|
||||
async onOpen() {
|
||||
|
|
|
@ -306,7 +306,7 @@ export default {
|
|||
renameAddressbook() {
|
||||
this.editingName = true
|
||||
},
|
||||
async updateAddressbookName(e) {
|
||||
async updateAddressbookName() {
|
||||
const addressbook = this.addressbook
|
||||
// New name for addressbook - inputed value from form
|
||||
const newName = this.$refs.renameInput.$el.querySelector('input[type="text"]').value
|
||||
|
|
|
@ -140,7 +140,7 @@ export default {
|
|||
|
||||
// push contact to server and use limit
|
||||
requests.push(limit(() => appendContactToGroup(contact, groupName)
|
||||
.then((response) => {
|
||||
.then(() => {
|
||||
this.$store.dispatch('addContactToGroup', { contact, groupName })
|
||||
this.processStatus.progress++
|
||||
this.processStatus.success++
|
||||
|
|
|
@ -200,7 +200,7 @@ export default {
|
|||
/**
|
||||
* Watch textarea resize and update the gridSize accordingly
|
||||
*/
|
||||
resizeHeight: debounce(function(e) {
|
||||
resizeHeight: debounce(function() {
|
||||
if (this.$refs.textarea && this.$refs.textarea.offsetHeight) {
|
||||
// adjust textarea size to content (2 = border)
|
||||
this.$refs.textarea.style.height = `${this.$refs.textarea.scrollHeight + 2}px`
|
||||
|
|
|
@ -27,6 +27,7 @@ import { CircleConfigs, MemberLevels } from './constants'
|
|||
|
||||
type MemberList = Record<string, Member>
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
export default class Circle {
|
||||
|
||||
_data: any = {}
|
||||
|
|
|
@ -59,6 +59,7 @@ const MEMBER_LEVEL_ADMIN: MemberLevel = 8
|
|||
const MEMBER_LEVEL_OWNER: MemberLevel = 9
|
||||
|
||||
// Circles member types
|
||||
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
||||
const MEMBER_TYPE_SINGLEID: MemberType = 0
|
||||
const MEMBER_TYPE_USER: MemberType = 1
|
||||
const MEMBER_TYPE_GROUP : MemberType = 2
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
import { MemberLevel, MemberLevels, MemberType, MemberTypes } from './constants'
|
||||
import Circle from './circle'
|
||||
import logger from '../services/logger.js'
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
export default class Member {
|
||||
|
||||
_data: any = {}
|
||||
|
|
|
@ -90,6 +90,7 @@ export const deleteCircle = async function(circleId: string) {
|
|||
return response.data.ocs.data
|
||||
}
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/**
|
||||
* Edit an existing circle
|
||||
*
|
||||
|
@ -103,6 +104,7 @@ export const editCircle = async function(circleId: string, type: CircleEditType,
|
|||
const response = await axios.put(generateOcsUrl('apps/circles/circles/{circleId}/{type}', { circleId, type }), { value })
|
||||
return response.data.ocs.data
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
|
||||
/**
|
||||
* Join a circle
|
||||
|
|
|
@ -353,7 +353,7 @@ export default {
|
|||
.map(addressbook => {
|
||||
return this.$store.dispatch('getContactsFromAddressBook', { addressbook })
|
||||
}),
|
||||
).then(results => {
|
||||
).then(() => {
|
||||
this.loadingContacts = false
|
||||
if (!this.isMobile && !this.selectedChart) {
|
||||
this.selectFirstContactIfNone()
|
||||
|
|
Loading…
Reference in New Issue