mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
spinner
This commit is contained in:
committed by
Thomas Krijnen
parent
0f7f960b29
commit
fcbec74521
@@ -61,6 +61,10 @@ function setBusy(isBusy, reason = "") {
|
|||||||
browseBtn.tabIndex = isBusy ? -1 : 0;
|
browseBtn.tabIndex = isBusy ? -1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendBtn.innerHTML = isBusy
|
||||||
|
? `<span class="spinner"></span>`
|
||||||
|
: `Send <span class="material-icons">send</span>`;
|
||||||
|
|
||||||
setStatus(isBusy ? (reason || "Working…") : "Ready");
|
setStatus(isBusy ? (reason || "Working…") : "Ready");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+12
-1
@@ -113,7 +113,18 @@
|
|||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 50%;
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin { to { transform: rotate(360deg); } }
|
||||||
|
.spinner {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border: 2px solid #aaa;
|
||||||
|
border-top-color: #333;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 0.7s linear infinite;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status {
|
.status {
|
||||||
|
|||||||
Reference in New Issue
Block a user