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
@@ -194,6 +194,7 @@ const EnableTwoFactorModal = ({ onEnable, onCancel, open, onOpenChange }: Enable
|
||||
type="submit"
|
||||
className="me-2 ms-2"
|
||||
onClick={handleSetup}
|
||||
loading={isSubmitting}
|
||||
disabled={password.length === 0 || isSubmitting}>
|
||||
{t("continue")}
|
||||
</Button>
|
||||
@@ -208,7 +209,12 @@ const EnableTwoFactorModal = ({ onEnable, onCancel, open, onOpenChange }: Enable
|
||||
</Button>
|
||||
</WithStep>
|
||||
<WithStep step={SetupStep.EnterTotpCode} current={step}>
|
||||
<Button type="submit" className="me-2 ms-2" data-testid="enable-2fa" disabled={isSubmitting}>
|
||||
<Button
|
||||
type="submit"
|
||||
className="me-2 ms-2"
|
||||
data-testid="enable-2fa"
|
||||
loading={isSubmitting}
|
||||
disabled={isSubmitting}>
|
||||
{t("enable")}
|
||||
</Button>
|
||||
</WithStep>
|
||||
|
||||
Reference in new issue
Block a user