Skip to content

Commit

Permalink
refactor: remove id/name filters #1081
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Dec 5, 2023
1 parent e0a1019 commit cd0325d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/components/TasksList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<template #cell(name)="{ item }">
<div class="tasks-list__tasks__item__name m-0 font-weight-bold">
<slot v-bind="{ item }">
{{ item.name | taskToName }}
{{ item.name }}
</slot>
</div>
<div class="d-flex align-items-center">
Expand All @@ -46,7 +46,7 @@
{{ $t('tasksList.encrypted') }}
</div>
<div v-if="hasZipSize(item)" class="tasks-list__tasks__item__size m-0 font-weight-bold">
{{ humanSize(item.result.size, false, $t('human.size')) | taskToId }}
{{ humanSize(item.result.size, false, $t('human.size')) }}
</div>
</template>
<template #table-colgroup="{ fields }">
Expand All @@ -67,14 +67,6 @@ export default {
components: {
EllipseStatus
},
filters: {
taskToName(taskName) {
return taskName.split('.').pop().split('@').shift()
},
taskToId(taskName) {
return taskName.split('@').pop()
}
},
props: {
/**
* Object of tasks passed from the parent
Expand Down

0 comments on commit cd0325d

Please sign in to comment.