bugfix for command, change date_started to desc

main
HerrHase 2 years ago
parent f31602b4fb
commit 9e1837d1dd

@ -1,6 +1,6 @@
<potato-close-button>
<button class="button button--full button--icon button--danger m-bottom-0" onclick={ (event) => { handleClose(event) } }>
<svg class="icon icon--big" aria-hidden="true">
<button class="button button--full button--icon button--danger button--hover-icon-text m-bottom-0" onclick={ (event) => { handleClose(event) } }>
<svg class="icon icon--big fill-text-contrast" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-log-out"></use>
</svg>
</button>

@ -173,6 +173,11 @@ class AppsDatabase extends DatabaseHandler {
}
}
// @TODO refactor this, change logic in filter
query.sort = [ {
'date_started': 'desc'
}]
// if sort is name change 'name-sort'
} else {
query.use_index = '_design/name-sort'

@ -241,6 +241,12 @@
event.preventDefault()
if (event.target.files[0]) {
if (!this.state.current) {
this.state.current = {
}
}
this.state.current.command = event.target.files[0].path
this.update()
}

@ -15,4 +15,12 @@
}
}
}
&--hover-icon-text {
&:hover {
.icon {
fill: var(--text);
}
}
}
}
Loading…
Cancel
Save