Hide "Copy Model Button" if navigator.clipboard is not available for embeddings.

This commit is contained in:
Christian Bastian
2024-04-04 00:26:43 -04:00
parent 1b5713ab2d
commit d32a732e07

View File

@@ -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",