From aedc8f01efed821a53ecf0dc260e6918b924ff6d Mon Sep 17 00:00:00 2001
From: Will Miao <13051207myq@gmail.com>
Date: Tue, 4 Feb 2025 23:34:38 +0800
Subject: [PATCH] Add copy model name toast
---
static/js/components/LoraCard.js | 2 +-
static/js/main.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/static/js/components/LoraCard.js b/static/js/components/LoraCard.js
index 7e24c06c..e89c3143 100644
--- a/static/js/components/LoraCard.js
+++ b/static/js/components/LoraCard.js
@@ -39,7 +39,7 @@ export function createLoraCard(lora) {
+ onclick="event.stopPropagation(); navigator.clipboard.writeText('${lora.file_name}').then(() => showToast('Model name copied', 'success')).catch(() => showToast('Copy failed', 'error'))">
{