mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Spinner for URL selector modal
Changelog-entry: Spinner for URL selector modal Change-type: patch
This commit is contained in:
parent
27e560c961
commit
fff9452509
@ -30,6 +30,7 @@ import {
|
|||||||
Txt,
|
Txt,
|
||||||
Card as BaseCard,
|
Card as BaseCard,
|
||||||
Input,
|
Input,
|
||||||
|
Spinner,
|
||||||
} from 'rendition';
|
} from 'rendition';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
@ -137,8 +138,9 @@ const URLSelector = ({
|
|||||||
<Modal
|
<Modal
|
||||||
cancel={cancel}
|
cancel={cancel}
|
||||||
primaryButtonProps={{
|
primaryButtonProps={{
|
||||||
className: loading || !imageURL ? 'disabled' : '',
|
disabled: loading || !imageURL,
|
||||||
}}
|
}}
|
||||||
|
action={loading ? <Spinner /> : 'OK'}
|
||||||
done={async () => {
|
done={async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
const urlStrings = recentImages.map((url: URL) => url.href);
|
const urlStrings = recentImages.map((url: URL) => url.href);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user