Add admin restart flow and loading indicators

This commit is contained in:
2026-07-08 13:34:43 +03:00
parent ae13070eba
commit 838dea0e03
11 changed files with 639 additions and 127 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import type { ButtonHTMLAttributes, ReactNode } from 'react';
import { BusyRing } from './BusyRing';
export type IconButtonVariant = 'neutral' | 'add' | 'danger';
@@ -36,8 +37,10 @@ export function IconButton({
aria-label={label}
data-tooltip={tooltipText}
disabled={disabled || loading}
aria-busy={loading || undefined}
>
{loading ? <span className="ui-button-spinner" aria-hidden="true" /> : icon}
{loading ? <BusyRing /> : null}
{icon}
</button>
);
}