mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
feat: cannot change username to the current one
This commit is contained in:
@@ -50,7 +50,11 @@ export const ProfileAccordion = ({ user }: ProfileAccordionProps) => {
|
||||
label={t("user.field.email.label")}
|
||||
{...form.getInputProps("email")}
|
||||
/>
|
||||
<Button type="submit" disabled={!form.isValid()} loading={isPending}>
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={!form.isValid() || !form.isDirty()}
|
||||
loading={isPending}
|
||||
>
|
||||
{t("common.action.save")}
|
||||
</Button>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user