Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js
index 12272322ec..a8699f0ba3 100644
--- a/src/components/status_popover/status_popover.js
+++ b/src/components/status_popover/status_popover.js
@@ -1,70 +1,69 @@
import Popover from 'src/components/popover/popover.vue'
import { useStatusesStore } from 'src/stores/statuses.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
library.add(faCircleNotch)
const StatusPopover = {
name: 'StatusPopover',
props: {
statusId: String,
link: Boolean,
},
emits: ['navigate'],
data() {
return {
error: false,
}
},
computed: {
status() {
return useStatusesStore().allStatuses.get(this.statusId)
},
statusLink() {
return this.$router.resolve({
name: 'conversation',
params: { statusId: this.statusId },
}).href
},
},
components: {
Popover,
},
methods: {
enter() {
if (!this.status) {
if (!this.statusId) {
this.error = true
return
}
useStatusesStore()
.fetchStatus(this.statusId)
.then(() => (this.error = false))
.catch(() => (this.error = true))
}
},
navigate() {
if (this.link) {
this.$router.push({
name: 'conversation',
params: { statusId: this.statusId },
})
} else {
- console.log(this.statusId)
this.$emit('navigate', this.statusId)
}
},
},
watch: {
status(newStatus, oldStatus) {
if (newStatus !== oldStatus) {
this.$nextTick(() => this.$refs.popover.updateStyles())
}
},
},
}
export default StatusPopover

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 1, 5:38 AM (14 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802569
Default Alt Text
(1 KB)

Event Timeline