mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added spinner when starting Olympus
This commit is contained in:
@@ -147,6 +147,9 @@ class DCSInstance {
|
|||||||
instanceDiv.querySelector(".button.edit").classList.toggle("hide", this.webserverOnline)
|
instanceDiv.querySelector(".button.edit").classList.toggle("hide", this.webserverOnline)
|
||||||
instanceDiv.querySelector(".button.open-browser").classList.toggle("hide", !this.webserverOnline)
|
instanceDiv.querySelector(".button.open-browser").classList.toggle("hide", !this.webserverOnline)
|
||||||
instanceDiv.querySelector(".button.stop").classList.toggle("hide", !this.webserverOnline)
|
instanceDiv.querySelector(".button.stop").classList.toggle("hide", !this.webserverOnline)
|
||||||
|
|
||||||
|
if (this.webserverOnline)
|
||||||
|
instanceDiv.querySelector(".button.start").classList.remove("loading")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,10 +61,12 @@ class InstancesPage extends ManagerPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onStartServerClicked(e) {
|
async onStartServerClicked(e) {
|
||||||
|
e.target.closest(".collapse").classList.add("loading");
|
||||||
this.getClickedInstance(e).then((instance) => instance.startServer());
|
this.getClickedInstance(e).then((instance) => instance.startServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
async onStartClientClicked(e) {
|
async onStartClientClicked(e) {
|
||||||
|
e.target.closest(".collapse").classList.add("loading");
|
||||||
this.getClickedInstance(e).then(instance => instance.startClient());
|
this.getClickedInstance(e).then(instance => instance.startClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -311,6 +311,8 @@ input {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 15px 0px !important;
|
padding: 15px 0px !important;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
#popup .footer {
|
#popup .footer {
|
||||||
@@ -482,6 +484,11 @@ input {
|
|||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button.collapse.loading::after {
|
||||||
|
background-image: url("../icons/spinner-solid.svg");
|
||||||
|
animation: rotate 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
.button.collapse>div {
|
.button.collapse>div {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user