File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ msgstr ""
5
5
"Content-Type : text/plain; charset=utf-8\n "
6
6
"Content-Transfer-Encoding : 8bit\n "
7
7
"Plural-Forms : nplurals=2; plural=(n != 1)\n "
8
- "POT-Creation-Date : 2021-05-31T12:19:50.489Z \n "
9
- "PO-Revision-Date : 2021-05-31T12:19:50.489Z \n "
8
+ "POT-Creation-Date : 2021-05-31T15:48:18.461Z \n "
9
+ "PO-Revision-Date : 2021-05-31T15:48:18.461Z \n "
10
10
11
11
msgid "Version {{version}} installed"
12
12
msgstr ""
Original file line number Diff line number Diff line change 1
1
import { useAlert } from '@dhis2/app-runtime'
2
2
import i18n from '@dhis2/d2-i18n'
3
- import { Button } from '@dhis2/ui'
3
+ import { Button , CircularLoader } from '@dhis2/ui'
4
4
import React , { useState , useRef } from 'react'
5
5
import { useApi } from '../../api'
6
6
import styles from './ManualInstall.module.css'
@@ -52,9 +52,14 @@ const UploadButton = () => {
52
52
onClick = { handleClick }
53
53
disabled = { isUploading }
54
54
>
55
- { isUploading
56
- ? i18n . t ( 'Uploading...' )
57
- : i18n . t ( 'Upload an app to install' ) }
55
+ { isUploading ? (
56
+ < >
57
+ { i18n . t ( 'Uploading...' ) }
58
+ < CircularLoader small />
59
+ </ >
60
+ ) : (
61
+ i18n . t ( 'Upload an app to install' )
62
+ ) }
58
63
</ Button >
59
64
</ >
60
65
)
You can’t perform that action at this time.
0 commit comments