style notification and rename write-chunk.py

This commit is contained in:
joshuaboud 2021-06-03 13:53:19 -03:00
parent 9917d35982
commit 815032456a
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
3 changed files with 18 additions and 2 deletions

View File

@ -499,18 +499,34 @@ input:checked + .slider:before {
padding: 5px; padding: 5px;
display: flex; display: flex;
flex-flow: column-reverse nowrap; flex-flow: column-reverse nowrap;
align-items: stretch;
max-height: 50%;
overflow-y: auto;
} }
.nav-notification { .nav-notification {
margin: 5px;
position: relative;
display: flex;
flex-flow: column nowrap;
align-items: stretch;
z-index: 10; z-index: 10;
flex-grow: 0; flex-grow: 0;
padding: 5px; padding: 5px;
background-color: var(--container); background-color: var(--container);
border: 1px solid var(--border); border-radius: var(--nav-border-radius);
color: var(--font); color: var(--font);
} }
.nav-notification-header { .nav-notification-header {
position: relative;
z-index: 10;
font-size: 120%; font-size: 120%;
font-weight: bold; font-weight: bold;
} }
.nav-notification-header > progress {
position: relative;
z-index: 10;
}

View File

@ -894,7 +894,7 @@ class FileUpload {
upload() { upload() {
this.make_html_element(); this.make_html_element();
this.proc = cockpit.spawn(["/usr/share/cockpit/navigator/scripts/write-chunk.py", this.path], {err: "out", superuser: "try"}); this.proc = cockpit.spawn(["/usr/share/cockpit/navigator/scripts/write-chunks.py", this.path], {err: "out", superuser: "try"});
this.proc.fail((e, data) => { this.proc.fail((e, data) => {
window.alert(data); window.alert(data);
}) })