From cc7294fe532a83131d0fb39e8af0e28c1781393f Mon Sep 17 00:00:00 2001 From: zachmann <gabriel.zachmann@kit.edu> Date: Tue, 2 Apr 2024 13:08:21 +0200 Subject: [PATCH] [web] set profile = "custom" if request is filled from query --- internal/server/web/static/js/create-mt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/web/static/js/create-mt.js b/internal/server/web/static/js/create-mt.js index 9e0007d7..a43ec6d8 100644 --- a/internal/server/web/static/js/create-mt.js +++ b/internal/server/web/static/js/create-mt.js @@ -137,7 +137,6 @@ function fillGUIFromRequestData(req) { fillGUIWithMaybeTemplate(req.restrictions, "restr", set_restrictions_in_gui, mtPrefix); fillGUIWithMaybeTemplate(req.rotation, "rot", set_rotation_in_gui, mtPrefix); fillGUIWithMaybeTemplate(req.capabilities, "cap", set_capabilities_in_gui, mtPrefix); - } function fillPropertiesFromQuery() { @@ -151,6 +150,7 @@ function fillPropertiesFromQuery() { const req_str = window.atob(base64); const req = JSON.parse(req_str); fillGUIFromRequestData(req); + $(prefixId(`profile-template`, mtPrefix)).val(""); } $mtOIDCIss.on('changed.bs.select', function () { -- GitLab