From 6b868242f9484353bf73968b9df3971a05ddaeaf Mon Sep 17 00:00:00 2001 From: "Ayobami O. Idowu" Date: Thu, 17 Aug 2023 14:55:03 -0700 Subject: [PATCH] Bug: Fix actions column right alignment issue Bug: Fix actions column right alignment issue in SubmissionsTable.vue and MySubmissionsTable.vue --- app/frontend/src/components/forms/SubmissionsTable.vue | 6 +----- .../src/components/forms/submission/MySubmissionsTable.vue | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/frontend/src/components/forms/SubmissionsTable.vue b/app/frontend/src/components/forms/SubmissionsTable.vue index a14c73010..2d869f936 100644 --- a/app/frontend/src/components/forms/SubmissionsTable.vue +++ b/app/frontend/src/components/forms/SubmissionsTable.vue @@ -487,11 +487,7 @@ export default { (h) => !this.tableFilterIgnore.some((fd) => fd.value === h.value) ); - if (headers.length > 2) { - headers.splice(headers.length - 2, 0, ...this.USER_PREFERENCES); - } else { - headers = headers.concat(this.USER_PREFERENCES); - } + headers.splice(headers.length - 2, 0, ...this.USER_PREFERENCES); } return headers; diff --git a/app/frontend/src/components/forms/submission/MySubmissionsTable.vue b/app/frontend/src/components/forms/submission/MySubmissionsTable.vue index 707b0abbc..fb52dc675 100644 --- a/app/frontend/src/components/forms/submission/MySubmissionsTable.vue +++ b/app/frontend/src/components/forms/submission/MySubmissionsTable.vue @@ -262,11 +262,7 @@ export default { (h) => !this.tableFilterIgnore.some((fd) => fd.value === h.value) ); - if (headers.length > 2) { - headers.splice(headers.length - 2, 0, ...this.filterData); - } else { - headers = headers.concat(this.filterData); - } + headers.splice(headers.length - 1, 0, ...this.filterData); } return headers; },