Skip to content

Commit

Permalink
Merge pull request #2570 from LibreSign/backport/2569/stable28
Browse files Browse the repository at this point in the history
[stable28] Filter file list
  • Loading branch information
vitormattos authored Mar 22, 2024
2 parents 013e3e2 + 309341b commit 677ec81
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 677ec81

Please sign in to comment.