lint
This commit is contained in:
parent
0665640660
commit
d1f67f0889
6 changed files with 28 additions and 25 deletions
|
|
@ -73,8 +73,6 @@ library.add(
|
|||
faPlay,
|
||||
)
|
||||
|
||||
const camelCase = (name) => name.charAt(0).toUpperCase() + name.slice(1)
|
||||
|
||||
const Status = {
|
||||
name: 'Status',
|
||||
components: {
|
||||
|
|
@ -108,7 +106,6 @@ const Status = {
|
|||
inProfile: Boolean,
|
||||
inConversation: Boolean,
|
||||
inQuote: Boolean,
|
||||
canDive: Boolean,
|
||||
|
||||
profileUserId: String,
|
||||
simpleTree: Boolean,
|
||||
|
|
@ -118,12 +115,7 @@ const Status = {
|
|||
|
||||
threadDisplayStatus: String,
|
||||
},
|
||||
emits: [
|
||||
'goto',
|
||||
'dive',
|
||||
'toggleExpanded',
|
||||
'suspendableStateChange'
|
||||
],
|
||||
emits: ['goto', 'dive', 'toggleExpanded', 'suspendableStateChange'],
|
||||
data() {
|
||||
return {
|
||||
replying: false,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import EmojiPicker from '../emoji_picker/emoji_picker.vue'
|
||||
import StatusBookmarkFolderMenu from 'src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue'
|
||||
import EmojiPicker from '../emoji_picker/emoji_picker.vue'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const StatusBody = {
|
|||
// Used to automatically expand subjects (if collapsed)
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -76,7 +76,11 @@ const StatusBody = {
|
|||
// button. If the default is to collapse statuses with subjects, we just treat it like
|
||||
// a status with a subject; otherwise, we just treat it like a tall status.
|
||||
mightHideBecauseSubject() {
|
||||
return !this.inConversation && this.hasSubject && this.mergedConfig.collapseMessageWithSubject
|
||||
return (
|
||||
!this.inConversation &&
|
||||
this.hasSubject &&
|
||||
this.mergedConfig.collapseMessageWithSubject
|
||||
)
|
||||
},
|
||||
mightHideBecauseTall() {
|
||||
if (this.singleLine || this.compact) return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue