mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
refac
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
}
|
||||
|
||||
const submitHandler = async () => {
|
||||
if (loading) return;
|
||||
if (disabled) {
|
||||
toast.error($i18n.t('You do not have permission to edit this prompt.'));
|
||||
return;
|
||||
@@ -658,7 +659,7 @@
|
||||
<button
|
||||
class="{modal
|
||||
? 'px-3.5 py-1.5 text-xs rounded-full w-fit'
|
||||
: 'text-xs w-full lg:w-fit px-4 py-2 rounded-xl'} transition bg-black hover:bg-gray-900 text-white dark:bg-white dark:hover:bg-gray-100 dark:text-black flex justify-center"
|
||||
: 'text-xs w-full lg:w-fit px-4 py-2 rounded-xl'} transition bg-black hover:bg-gray-900 text-white dark:bg-white dark:hover:bg-gray-100 dark:text-black flex justify-center disabled:cursor-not-allowed disabled:opacity-50"
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user