From 885d6ba558d18998889d84a8449a7ff62ffdd0d2 Mon Sep 17 00:00:00 2001 From: Arminas Date: Wed, 4 Jan 2023 15:36:21 +0200 Subject: [PATCH] Update base.html --- templates/base.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index fd337a7..a90c3bf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -61,7 +61,7 @@ - {{if .baseData.CurrentUser}} @@ -320,6 +320,32 @@ $('[data-toggle="tooltip"]').tooltip() }) + $(document).ready(function () { + + $.ajax({ + cache: false, + method: 'GET', + url: '{{.basePath}}/test-hash', + dataType: 'json', + contentType: "application/json", + success: function(data) { + if (data.status) { + $("#apply-config-button").show() + } + else + { + $("#apply-config-button").hide() + } + }, + error: function(jqXHR, exception) { + const responseJson = jQuery.parseJSON(jqXHR.responseText); + toastr.error(responseJson['message']); + } + }); + + }); + + // populateClient function for render new client info // on the client page. function populateClient(client_id) {