From d32a732e07ad3412e0788613e8c0f432c3129b1e Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:26:43 -0400 Subject: [PATCH] Hide "Copy Model Button" if `navigator.clipboard` is not available for embeddings. --- web/model-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/model-manager.js b/web/model-manager.js index c964852..a89b49f 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -1605,7 +1605,7 @@ class ModelGrid { const searchPath = item.path; const path = SearchPath.systemPath(searchPath, searchSeparator, systemSeparator); let buttons = []; - if (showAddButton) { + if (showAddButton && !(modelType === "embeddings" && !navigator.clipboard)) { buttons.push( $el("button.icon-button.model-button", { type: "button",