mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-23 15:07:44 +01:00
Block buttons when requests are running
This commit is contained in:
parent
8d8d637645
commit
5bc6c93d13
@ -441,12 +441,12 @@ function Form(): JSX.Element {
|
||||
</div>
|
||||
|
||||
<div className="flex flex-row items-center justify-start">
|
||||
<button disabled={isDisabledAppleWallet} id="download" type="submit" value='applewallet' name='action'
|
||||
<button disabled={isDisabledAppleWallet || loading} id="download" type="submit" value='applewallet' name='action'
|
||||
className="focus:outline-none bg-green-600 py-2 px-3 text-white font-semibold rounded-md disabled:bg-gray-400">
|
||||
{t('index:addToWallet')}
|
||||
</button>
|
||||
|
||||
<button id="saveAsPhoto" type="button" value='photo' name='action' onClick={saveAsPhoto}
|
||||
<button id="saveAsPhoto" type="button" disabled={loading} value='photo' name='action' onClick={saveAsPhoto}
|
||||
className="focus:outline-none bg-green-600 py-2 px-3 text-white font-semibold rounded-md disabled:bg-gray-400">
|
||||
{t('index:saveAsPhoto')}
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user