misc: re-add wait spinner
This commit is contained in:
1 parent
c9281d0486
commit
cee02cbc99
2 files changed
+3
-1
No files matched your search
@@ -42,9 +42,11 @@
|
|||||||
$: {
|
$: {
|
||||||
if (browser) {
|
if (browser) {
|
||||||
if ($navigating) {
|
if ($navigating) {
|
||||||
|
document.body.classList.toggle('wait', true)
|
||||||
barTimeout = setTimeout(() => nProgress.start(), 100)
|
barTimeout = setTimeout(() => nProgress.start(), 100)
|
||||||
}
|
}
|
||||||
if (!$navigating) {
|
if (!$navigating) {
|
||||||
|
document.body.classList.toggle('wait', false)
|
||||||
clearTimeout(barTimeout)
|
clearTimeout(barTimeout)
|
||||||
nProgress.done()
|
nProgress.done()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wait * {
|
.wait * {
|
||||||
cursor: progress !important;
|
cursor: wait !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nprogress {
|
#nprogress {
|
||||||
|
|||||||
Reference in new issue
Block a user