From 309341bec5cda90166339366a3cb48c94c0e1ccc Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 22 Mar 2024 09:00:19 -0300 Subject: [PATCH] Filter file list Signed-off-by: Vitor Mattos --- src/store/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/files.js b/src/store/files.js index 322af5d6e2..6e7c7eca17 100644 --- a/src/store/files.js +++ b/src/store/files.js @@ -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() {