From bbc70fe6e6beca61dbc97444b0baa6677342b39a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 5 Sep 2024 01:17:35 +0200 Subject: [PATCH] [UI] The main module should load the config dir and main file paths at startup. --- platypush/backend/http/webapp/src/App.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/App.vue b/platypush/backend/http/webapp/src/App.vue index 004394f17f..bbeea48a9b 100644 --- a/platypush/backend/http/webapp/src/App.vue +++ b/platypush/backend/http/webapp/src/App.vue @@ -49,6 +49,8 @@ export default { data() { return { config: {}, + configDir: null, + configFile: null, userAuthenticated: false, connected: false, pwaInstallEvent: null, @@ -85,7 +87,11 @@ export default { }, async initConfig() { - this.config = await this.request('config.get', {}, 60000, false) + this.config = await this.request('config.get', {}, 60000, false); + [this.configDir, this.configFile] = await Promise.all([ + this.request('config.get_config_dir'), + this.request('config.get_config_file'), + ]) this.userAuthenticated = true },