From a6b3b065f47641443fb8c8f730e4ab9e812438a3 Mon Sep 17 00:00:00 2001 From: Yashar Robert Date: Thu, 19 Dec 2024 14:21:11 +0100 Subject: [PATCH] Remove copy token button form browsable api Button was meant to allow quick bebugging in curl. But it is easily abused for loading data into other applications. This update removes the button. --- src/dso_api/static/dso_api/dynamic_api/js/browsable_api.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dso_api/static/dso_api/dynamic_api/js/browsable_api.js b/src/dso_api/static/dso_api/dynamic_api/js/browsable_api.js index 9cceea2d4..0eaf3bb2b 100644 --- a/src/dso_api/static/dso_api/dynamic_api/js/browsable_api.js +++ b/src/dso_api/static/dso_api/dynamic_api/js/browsable_api.js @@ -872,7 +872,6 @@ function setInfoBubble(element) { expiredText = `Exp:${minutesRemaining}min`; summary = `${token.preferred_username} ${isExpired?"Expired":expiredText} `; infoEl.innerHTML = `
${summary}
` - infoEl.innerHTML += `
📋
` infoEl.innerHTML += `
${syntaxHighlight(JSON.stringify(token,null,4))}
`; infoEl.classList.remove("hidden"); } else {