Skip to content

Commit

Permalink
Merge pull request #2569 from LibreSign/bugfix/filter-file-list
Browse files Browse the repository at this point in the history
Filter file list
  • Loading branch information
vitormattos authored Mar 22, 2024
2 parents 2a70c00 + 2b74cf0 commit 236664c
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 236664c

Please sign in to comment.