mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
enh: disable edit button during generation
This commit is contained in:
@@ -403,10 +403,11 @@ Based on the user's instruction, update and enhance the existing notes or select
|
|||||||
|
|
||||||
localStorage.setItem('noteEditEnabled', editEnabled ? 'true' : 'false');
|
localStorage.setItem('noteEditEnabled', editEnabled ? 'true' : 'false');
|
||||||
}}
|
}}
|
||||||
|
disabled={streaming || loading}
|
||||||
type="button"
|
type="button"
|
||||||
class="px-2 @xl:px-2.5 py-2 flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden hover:bg-gray-50 dark:hover:bg-gray-800 {editEnabled
|
class="px-2 @xl:px-2.5 py-2 flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden hover:bg-gray-50 dark:hover:bg-gray-800 {editEnabled
|
||||||
? ' text-sky-500 dark:text-sky-300 bg-sky-50 dark:bg-sky-200/5'
|
? ' text-sky-500 dark:text-sky-300 bg-sky-50 dark:bg-sky-200/5'
|
||||||
: 'bg-transparent text-gray-600 dark:text-gray-300 '}"
|
: 'bg-transparent text-gray-600 dark:text-gray-300 '} disabled:opacity-50 disabled:pointer-events-none"
|
||||||
>
|
>
|
||||||
<PencilSquare className="size-4" strokeWidth="1.75" />
|
<PencilSquare className="size-4" strokeWidth="1.75" />
|
||||||
<span
|
<span
|
||||||
|
|||||||
Reference in New Issue
Block a user