mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-15 18:45:33 +00:00
feature: Logs, column for tag, and left align status. Stop nav flash (#393)
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<h1 id = "page-title">OliveTin</h1>
|
<h1 id = "page-title">OliveTin</h1>
|
||||||
|
|
||||||
<nav>
|
<nav hidden>
|
||||||
<ul id = "navigation-links">
|
<ul id = "navigation-links">
|
||||||
<li title = "Actions">
|
<li title = "Actions">
|
||||||
<a id = "showActions">Actions</a>
|
<a id = "showActions">Actions</a>
|
||||||
@@ -57,7 +57,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr title = "untitled">
|
<tr title = "untitled">
|
||||||
<th>Timestamp</th>
|
<th>Timestamp</th>
|
||||||
<th>Log</th>
|
<th>Action</th>
|
||||||
|
<th>Tags</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -184,8 +185,8 @@
|
|||||||
<span role = "img" class = "icon"></span>
|
<span role = "img" class = "icon"></span>
|
||||||
<a href = "javascript:void(0)" class = "content">?</a>
|
<a href = "javascript:void(0)" class = "content">?</a>
|
||||||
|
|
||||||
<div class = "tags"></div>
|
|
||||||
</td>
|
</td>
|
||||||
|
<td class = "tags"></td>
|
||||||
<td class = "exit-code">?</td>
|
<td class = "exit-code">?</td>
|
||||||
</tr>
|
</tr>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -15,10 +15,11 @@ export class ActionStatusDisplay {
|
|||||||
|
|
||||||
update (logEntry) {
|
update (logEntry) {
|
||||||
this.statusElement.classList.remove(...this.statusElement.classList)
|
this.statusElement.classList.remove(...this.statusElement.classList)
|
||||||
|
this.statusElement.classList.add('action-status')
|
||||||
|
|
||||||
if (logEntry.executionFinished) {
|
if (logEntry.executionFinished) {
|
||||||
this.statusElement.innerText = 'Completed'
|
this.statusElement.innerText = 'Completed'
|
||||||
this.exitCodeElement.innerText = ', Exit code: ' + logEntry.exitCode
|
this.exitCodeElement.innerText = ' Exit code: ' + logEntry.exitCode
|
||||||
|
|
||||||
if (logEntry.exitCode === 0) {
|
if (logEntry.exitCode === 0) {
|
||||||
this.statusElement.classList.add('action-success')
|
this.statusElement.classList.add('action-success')
|
||||||
|
|||||||
@@ -163,6 +163,8 @@ function setSectionNavigationVisible (visible) {
|
|||||||
const nav = document.querySelector('nav')
|
const nav = document.querySelector('nav')
|
||||||
const btn = document.getElementById('sidebar-toggler-button')
|
const btn = document.getElementById('sidebar-toggler-button')
|
||||||
|
|
||||||
|
nav.removeAttribute('hidden')
|
||||||
|
|
||||||
if (document.body.classList.contains('has-sidebar')) {
|
if (document.body.classList.contains('has-sidebar')) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
btn.setAttribute('aria-pressed', false)
|
btn.setAttribute('aria-pressed', false)
|
||||||
|
|||||||
Reference in New Issue
Block a user