This commit is contained in:
Timothy Jaeryang Baek 2026-10-06 21:59:59 +04:00
parent 4a145af22a
commit 32b653d4ea

View file

@ -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}
>