Hide "Copy Model Button" if navigator.clipboard is not available for embeddings.
This commit is contained in:
@@ -1605,7 +1605,7 @@ class ModelGrid {
|
|||||||
const searchPath = item.path;
|
const searchPath = item.path;
|
||||||
const path = SearchPath.systemPath(searchPath, searchSeparator, systemSeparator);
|
const path = SearchPath.systemPath(searchPath, searchSeparator, systemSeparator);
|
||||||
let buttons = [];
|
let buttons = [];
|
||||||
if (showAddButton) {
|
if (showAddButton && !(modelType === "embeddings" && !navigator.clipboard)) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
$el("button.icon-button.model-button", {
|
$el("button.icon-button.model-button", {
|
||||||
type: "button",
|
type: "button",
|
||||||
|
|||||||
Reference in New Issue
Block a user