UI: Add exec loading template (#7566)

This closes #7460. Before this, there was an incongruous flash
of the non-exec UI during loading.
This commit is contained in:
Buck Doyle 2020-03-31 13:59:43 -05:00 committed by GitHub
parent 61164b856e
commit d70c3fbb3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View File

@ -21,6 +21,13 @@
}
}
}
&.loading {
justify-content: center;
align-items: center;
background: black;
height: 100%;
}
}
.task-group-tree {

View File

@ -0,0 +1,17 @@
{{title "Exec"}}
<nav class="navbar is-popup">
<div class="navbar-brand">
<div class="navbar-item is-logo">
{{partial "partials/nomad-logo"}}
</div>
</div>
<div class="navbar-end">
<a href="https://nomadproject.io/docs" target="_blank" rel="noopener" class="navbar-item">Documentation</a>
{{x-icon "lock-closed"}}
</div>
</nav>
<div class="tree-and-terminal loading">
{{partial "partials/loading-spinner"}}
</div>

View File

@ -1,6 +1,4 @@
{{title "Exec"}}
{{!-- the application shows briefly in the background, shouldnt render at all 😳 --}}
{{!-- issue to fix: https://github.com/hashicorp/nomad/issues/7460 --}}
<nav class="navbar is-popup">
<div class="navbar-brand">
<div class="navbar-item is-logo">