Skip to content

Commit

Permalink
feat: create task settings to have visible properties selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Oct 25, 2024
1 parent c0edda1 commit daea8aa
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/composables/task-settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'

export function useTaskSettings() {
const { t } = useI18n()

const propertiesOrder = ['id', 'name', 'createdAt', 'progress', 'result', 'state']

const propertiesLabel = computed(() => {
return {
id: 'id',
name: 'name',
createdAt: 'createdAt',
progress: 'progress',
result: 'result',
state: 'state'
}
})

const propertiesIcon = {
id: 'image',
name: 'file-text',
createdAt: 'quotes',
progress: 'user-circle',
result: 'tree-structure',
state: 'hash'
}

return { propertiesOrder, propertiesLabel, propertiesIcon }
}

0 comments on commit daea8aa

Please sign in to comment.