From f37ab53effc759e9435efaa90169460da54cc955 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 22 Sep 2023 16:49:01 -0500 Subject: [PATCH] Update get all backups api endpoint to return backupLocation, display location above backup settings --- client/components/tables/BackupsTable.vue | 1 + client/pages/config/backups.vue | 36 +++++++++-------------- server/controllers/BackupController.js | 7 +---- server/routers/ApiRouter.js | 1 - 4 files changed, 16 insertions(+), 29 deletions(-) diff --git a/client/components/tables/BackupsTable.vue b/client/components/tables/BackupsTable.vue index a216f463..08692a4d 100644 --- a/client/components/tables/BackupsTable.vue +++ b/client/components/tables/BackupsTable.vue @@ -164,6 +164,7 @@ export default { this.$axios .$get('/api/backups') .then((data) => { + this.$emit('loaded', data.backupLocation) this.setBackups(data.backups || []) }) .catch((error) => { diff --git a/client/pages/config/backups.vue b/client/pages/config/backups.vue index 50114d34..61543e65 100644 --- a/client/pages/config/backups.vue +++ b/client/pages/config/backups.vue @@ -1,6 +1,12 @@