biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -6,56 +6,58 @@ import { useStatusHistoryStore } from 'src/stores/statusHistory'
const StatusHistoryModal = {
components: {
Modal,
Status
Status,
},
data () {
data() {
return {
statuses: []
statuses: [],
}
},
computed: {
modalActivated () {
modalActivated() {
return useStatusHistoryStore().modalActivated
},
params () {
params() {
return useStatusHistoryStore().params
},
statusId () {
statusId() {
return this.params.id
},
historyCount () {
historyCount() {
return this.statuses.length
},
history () {
history() {
return this.statuses
}
},
},
watch: {
params (newVal, oldVal) {
params(newVal, oldVal) {
const newStatusId = get(newVal, 'id') !== get(oldVal, 'id')
if (newStatusId) {
this.resetHistory()
}
if (newStatusId || get(newVal, 'edited_at') !== get(oldVal, 'edited_at')) {
if (
newStatusId ||
get(newVal, 'edited_at') !== get(oldVal, 'edited_at')
) {
this.fetchStatusHistory()
}
}
},
},
methods: {
resetHistory () {
resetHistory() {
this.statuses = []
},
fetchStatusHistory () {
this.$store.dispatch('fetchStatusHistory', this.params)
.then(data => {
this.statuses = data
})
fetchStatusHistory() {
this.$store.dispatch('fetchStatusHistory', this.params).then((data) => {
this.statuses = data
})
},
closeModal () {
closeModal() {
useStatusHistoryStore().closeStatusHistoryModal()
}
}
},
},
}
export default StatusHistoryModal