Added loading on processing
This commit is contained in:
parent
088e619068
commit
d60a60a46e
1 changed files with 7 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ export default () => {
|
|||
const [configNotification, setConfigNotification] = createSignal(false)
|
||||
const [isIncomplete, setIsIncomplete] = createSignal(false)
|
||||
const [isLoading, setIsLoading] = createSignal(false)
|
||||
const [loadingText, setLoadingText] = createSignal('')
|
||||
|
||||
let bldgadditional = false
|
||||
|
||||
|
|
@ -98,6 +99,7 @@ export default () => {
|
|||
return
|
||||
}
|
||||
setIsLoading(true)
|
||||
setLoadingText('Downloading Data')
|
||||
|
||||
await getPassword()
|
||||
|
||||
|
|
@ -166,6 +168,9 @@ export default () => {
|
|||
return
|
||||
}
|
||||
|
||||
setIsLoading(true)
|
||||
setLoadingText('Processing Data')
|
||||
|
||||
if (division === 'electrical') {
|
||||
// const isPaid = BACKEND.includes('localhost') ? await checkStatusPopsLocal(application) : await statusPopsOp(application)
|
||||
// let isPaid
|
||||
|
|
@ -253,6 +258,7 @@ export default () => {
|
|||
setErrorMessage('Error on posting on POPS Server, please try again')
|
||||
return
|
||||
}
|
||||
setIsLoading(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -770,7 +776,7 @@ export default () => {
|
|||
<Padding top={2} bottom={0} right={10} left={10}>
|
||||
<Column gap={1}>
|
||||
<AiOutlineLoading3Quarters class="loading-spinner" size={42} opacity={0.8} />
|
||||
<span>Downloading Data</span>
|
||||
<span>{loadingText()}</span>
|
||||
</Column>
|
||||
</Padding>
|
||||
</Show>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue