chore(webui): prepare lock code for webui force unlock
Some checks failed
main / main (push) Failing after 20s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

#13
This commit is contained in:
Julien Dessaux 2025-05-02 00:26:32 +02:00
parent 0a63e1f593
commit 8f17a3661e
Signed by: adyxax
GPG key ID: F92E51B86E07177E
10 changed files with 135 additions and 49 deletions

View file

@ -70,9 +70,15 @@
unlocked
{{ else }}
<span class="tooltip">
locked
<strong>locked</strong>
<span class="tooltip-text">
{{ .State.Lock }}
<strong>Created: </strong>{{ .Lock.Created }}<br>
<strong>Id: </strong>{{ .Lock.Id }}<br>
<strong>Info: </strong>{{ .Lock.Info }}<br>
<strong>Operation: </strong>{{ .Lock.Operation }}<br>
<strong>Path: </strong>{{ .Lock.Path }}<br>
<strong>Version: </strong>{{ .Lock.Version }}<br>
<strong>Who: </strong>{{ .Lock.Who }}
</span>
</span>
{{ end }}

View file

@ -14,7 +14,13 @@
<span class="tooltip">
locked.
<span class="tooltip-text">
{{ .State.Lock }}
<strong>Created: </strong>{{ .State.Lock.Created }}<br>
<strong>Id: </strong>{{ .State.Lock.Id }}<br>
<strong>Info: </strong>{{ .State.Lock.Info }}<br>
<strong>Operation: </strong>{{ .State.Lock.Operation }}<br>
<strong>Path: </strong>{{ .State.Lock.Path }}<br>
<strong>Version: </strong>{{ .State.Lock.Version }}<br>
<strong>Who: </strong>{{ .State.Lock.Who }}
</span>
</span>
{{ end }}

View file

@ -413,12 +413,13 @@ th {
color: var(--fg-0);
left: 50%;
margin-left: -60px;
min-width: 320px;
padding: 5px 0;
position: absolute;
text-align: center;
top: 100%;
visibility: hidden;
width: 120px;
width: fit-content;
z-index: 1;
}
.tooltip .tooltip-text::after {