[Refactoring] Architecture

This commit is contained in:
Matej Glasnák committed 2022-11-22 16:29:47 +01:00
1 parent 9af01fc34b
commit b374a85eac
34 files changed
+103 -51

No files matched your search

@@ -0,0 +1,30 @@
<template>
<W-loadable :content="ongoingTasks">
<A-ongoing-table :tasks="ongoingTasks" />
</W-loadable>
</template>
<script>
import AOngoingTable from './_components/a-ongoing-table.vue'
export default {
components: {
AOngoingTable
},
data() {
return {
ongoingTasks: null
}
},
async created() {
try {
this.ongoingTasks = await this.$axios.get_auth_data('v1/overview/ongoing-tasks')
} catch (error) {
this.unscheduledTasks = {error: error.data.error}
this.$toast.error(error.data.error)
}
}
}
</script>