From 0bd8c874fb36c68eb773e39ffa0a90ab9d4deeff Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Sun, 29 Sep 2024 20:29:55 +0500 Subject: [PATCH] feat(ui): display Runners in menu only if runners enabled --- api/router.go | 7 ++++--- web/src/App.vue | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api/router.go b/api/router.go index e5233f49..983a87bd 100644 --- a/api/router.go +++ b/api/router.go @@ -458,9 +458,10 @@ func serveFile(w http.ResponseWriter, r *http.Request, name string) { func getSystemInfo(w http.ResponseWriter, r *http.Request) { body := map[string]interface{}{ - "version": util.Version(), - "ansible": util.AnsibleVersion(), - "web_host": util.WebHostURL.String(), + "version": util.Version(), + "ansible": util.AnsibleVersion(), + "web_host": util.WebHostURL.String(), + "use_remote_runner": util.Config.UseRemoteRunner, } helpers.WriteJSON(w, http.StatusOK, body) diff --git a/web/src/App.vue b/web/src/App.vue index 7fcec92f..28d00b20 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -404,7 +404,11 @@ - + mdi-cogs