bugfix for command, change date_started to desc

main
HerrHase 2 years ago
parent f31602b4fb
commit 9e1837d1dd

@ -1,6 +1,6 @@
<potato-close-button> <potato-close-button>
<button class="button button--full button--icon button--danger m-bottom-0" onclick={ (event) => { handleClose(event) } }> <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" aria-hidden="true"> <svg class="icon icon--big fill-text-contrast" aria-hidden="true">
<use xlink:href="symbol-defs.svg#icon-log-out"></use> <use xlink:href="symbol-defs.svg#icon-log-out"></use>
</svg> </svg>
</button> </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' // if sort is name change 'name-sort'
} else { } else {
query.use_index = '_design/name-sort' query.use_index = '_design/name-sort'

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

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