forked from AkkomaGang/akkoma-fe
More eslint fixes.
This commit is contained in:
parent
5abf857705
commit
9778d4cfc0
3 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ const DeleteButton = {
|
||||||
props: [ 'status' ],
|
props: [ 'status' ],
|
||||||
methods: {
|
methods: {
|
||||||
deleteStatus () {
|
deleteStatus () {
|
||||||
const confirmed = confirm('Do you really want to delete this status?')
|
const confirmed = window.confirm('Do you really want to delete this status?')
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
this.$store.dispatch('deleteStatus', { id: this.status.id })
|
this.$store.dispatch('deleteStatus', { id: this.status.id })
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ const DeleteButton = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
currentUser () { return this.$store.state.users.currentUser },
|
currentUser () { return this.$store.state.users.currentUser },
|
||||||
canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id == this.currentUser.id }
|
canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ const mediaUpload = {
|
||||||
.then((fileData) => {
|
.then((fileData) => {
|
||||||
self.$emit('uploaded', fileData)
|
self.$emit('uploaded', fileData)
|
||||||
self.uploading = false
|
self.uploading = false
|
||||||
}, (error) => {
|
}, (error) => { // eslint-disable-line handle-callback-err
|
||||||
self.$emit('upload-failed')
|
self.$emit('upload-failed')
|
||||||
self.uploading = false
|
self.uploading = false
|
||||||
})
|
})
|
||||||
|
|
|
@ -49,7 +49,7 @@ const defaultCollection = {
|
||||||
menuContainer: document.body,
|
menuContainer: document.body,
|
||||||
|
|
||||||
// column to search against in the object (accepts function or string)
|
// column to search against in the object (accepts function or string)
|
||||||
lookup: ({name, screen_name}) => `${name} (@${screen_name})`,
|
lookup: ({name, screen_name}) => `${name} (@${screen_name})`, // eslint-disable-line camelcase
|
||||||
|
|
||||||
// column that contains the content to insert by default
|
// column that contains the content to insert by default
|
||||||
fillAttr: 'screen_name',
|
fillAttr: 'screen_name',
|
||||||
|
|
Loading…
Reference in a new issue