Added loading to login and admin user creation

This commit is contained in:
frikky
2021-05-26 12:39:07 +02:00
parent cfab53012e
commit 06b74cf4da
5 changed files with 52 additions and 41 deletions
+26 -20
View File
@@ -243,6 +243,9 @@ const Apps = (props) => {
privateapps.push(...invalid)
setApps(privateapps)
//handleSearchChange(event.target.value)
//setCursearch(event.target.value)
setFilteredApps(privateapps)
if (privateapps.length > 0) {
if (selectedApp.id === undefined || selectedApp.id === null) {
@@ -995,26 +998,29 @@ const Apps = (props) => {
</span>
}
</div>
<TextField
style={{backgroundColor: inputColor, borderRadius: 5,}}
InputProps={{
style:{
color: "white",
minHeight: "50px",
marginLeft: "5px",
maxWidth: "95%",
fontSize: "1em",
borderRadius: 5,
},
}}
fullWidth
color="primary"
placeholder={"Search apps"}
onChange={(event) => {
handleSearchChange(event.target.value)
setCursearch(event.target.value)
}}
/>
<div style={{height: 50}}>
<TextField
style={{backgroundColor: inputColor, borderRadius: 5,}}
InputProps={{
style:{
color: "white",
minHeight: "50px",
marginLeft: "5px",
maxWidth: "95%",
fontSize: "1em",
borderRadius: 5,
},
}}
disabled={apps === undefined || apps === null || apps.length === 0}
fullWidth
color="primary"
placeholder={"Search apps"}
onChange={(event) => {
handleSearchChange(event.target.value)
setCursearch(event.target.value)
}}
/>
</div>
<div style={{marginTop: 15}}>
{apps.length > 0 ?
filteredApps.length > 0 ?