lint
This commit is contained in:
parent
64a8b71cce
commit
37900bb998
7 changed files with 83 additions and 58 deletions
|
|
@ -186,7 +186,11 @@ export default {
|
|||
return useShoutStore().joined
|
||||
},
|
||||
isChats() {
|
||||
return this.$route.name === 'chat' || this.$route.name === 'chats' || this.$route.name === 'conversation2'
|
||||
return (
|
||||
this.$route.name === 'chat' ||
|
||||
this.$route.name === 'chats' ||
|
||||
this.$route.name === 'conversation2'
|
||||
)
|
||||
},
|
||||
isListEdit() {
|
||||
return this.$route.name === 'lists-edit'
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const Draft = {
|
|||
return { statusId: this.draft.refId }
|
||||
} else if (this.draft.type === 'reply') {
|
||||
return {
|
||||
repliedStatus: this.refStatus
|
||||
repliedStatus: this.refStatus,
|
||||
}
|
||||
} else {
|
||||
return {}
|
||||
|
|
|
|||
|
|
@ -351,17 +351,14 @@ const PostStatusForm = {
|
|||
return this.newStatus.quote !== null
|
||||
},
|
||||
quotable() {
|
||||
if (
|
||||
!this.quotingAvailable ||
|
||||
!this.isReply
|
||||
) {
|
||||
if (!this.quotingAvailable || !this.isReply) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (
|
||||
this.repliedStatus.visibility === 'public' ||
|
||||
this.repliedStatus.visibility === 'unlisted' ||
|
||||
this.repliedStatus.visibility === 'local'
|
||||
this.repliedStatus.visibility === 'unlisted' ||
|
||||
this.repliedStatus.visibility === 'local'
|
||||
) {
|
||||
return true
|
||||
} else if (this.repliedStatus.visibility === 'private') {
|
||||
|
|
@ -703,7 +700,6 @@ const PostStatusForm = {
|
|||
this.previewLoading = false
|
||||
return
|
||||
}
|
||||
const newStatus = this.newStatus
|
||||
this.previewLoading = true
|
||||
|
||||
statusPoster
|
||||
|
|
@ -961,7 +957,8 @@ const PostStatusForm = {
|
|||
},
|
||||
|
||||
// Quote
|
||||
toggleQuoteForm() { // This is for the "attach quote" button
|
||||
toggleQuoteForm() {
|
||||
// This is for the "attach quote" button
|
||||
if (!this.hasQuote) {
|
||||
this.newStatus.quote = {}
|
||||
this.newStatus.quote.thread = false
|
||||
|
|
@ -983,14 +980,13 @@ const PostStatusForm = {
|
|||
saveDraft() {
|
||||
if (!this.disableDraft && !this.saveInhibited) {
|
||||
if (this.safeToSaveDraft) {
|
||||
return this
|
||||
.$store
|
||||
return this.$store
|
||||
.dispatch('addOrSaveDraft', {
|
||||
draft: {
|
||||
type: this.statusType,
|
||||
refId: this.refId,
|
||||
...this.newStatus
|
||||
}
|
||||
...this.newStatus,
|
||||
},
|
||||
})
|
||||
.then((id) => {
|
||||
if (this.newStatus.id !== id) {
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ import {
|
|||
faChevronDown,
|
||||
faChevronRight,
|
||||
faComments,
|
||||
faList,
|
||||
faExternalLinkAlt,
|
||||
faEye,
|
||||
faEyeSlash,
|
||||
faHistory,
|
||||
faList,
|
||||
faMinus,
|
||||
faPencil,
|
||||
faPlus,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import Popover from 'src/components/popover/popover.vue'
|
|||
import ActionButton from './action_button.vue'
|
||||
|
||||
import { useAdminSettingsStore } from 'src/stores/admin_settings.js'
|
||||
|
||||
import genRandomSeed from 'src/services/random_seed/random_seed.service.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue