Skip to content

Commit

Permalink
Filter file list
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Mar 22, 2024
1 parent 2a70c00 commit 2b74cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ export const useFilesStore = defineStore('files', {
},
pendingFilter() {
return Object.values(this.files).filter(
(a) => (a.status === 1)).sort(
(a) => (a.status === 1 || a.status === 2)).sort(
(a, b) => (a.request_date < b.request_date) ? 1 : -1)
},
signedFilter() {
return Object.values(this.files).filter(
(a) => (a.status === 2)).sort(
(a) => (a.status === 3)).sort(
(a, b) => (a.request_date < b.request_date) ? 1 : -1)
},
orderFiles() {
Expand Down

0 comments on commit 2b74cf0

Please sign in to comment.