feat: add loading state for buttons on settings page (#10643)
* fix: add spinner to general settings section * feat: add and manage spinner in the emptyScreen component * feat: add spinner to two-factor auth modal buttons * feat: add spinner to password and impersonation setting buttons * feat: add spinner to webhookform(edit and create) * chore: clean up code --------- Co-authored-by: lemmyMwaura <[email protected]>
This commit is contained in:
1 parent
975420181d
commit
59ea4d624b
5 files changed
+24
-5
No files matched your search
@@ -79,7 +79,12 @@ const ProfileImpersonationView = () => {
|
||||
</Skeleton>
|
||||
</div>
|
||||
</div>
|
||||
<Button color="primary" className="mt-8" type="submit" disabled={isDisabled}>
|
||||
<Button
|
||||
color="primary"
|
||||
loading={mutation.isLoading}
|
||||
className="mt-8"
|
||||
type="submit"
|
||||
disabled={isDisabled}>
|
||||
{t("update")}
|
||||
</Button>
|
||||
</Form>
|
||||
|
||||
@@ -199,6 +199,7 @@ const PasswordView = () => {
|
||||
color="primary"
|
||||
className="mt-8"
|
||||
type="submit"
|
||||
loading={passwordMutation.isLoading || sessionMutation.isLoading}
|
||||
onClick={() => formMethods.clearErrors("apiError")}
|
||||
disabled={isDisabled || passwordMutation.isLoading || sessionMutation.isLoading}>
|
||||
{t("update")}
|
||||
|
||||
Reference in new issue
Block a user