Order filter-users presets by "name" (asc) + little fixes

This commit is contained in:
Bofh 2022-12-19 00:37:39 +01:00
parent b365cd46d2
commit c59d25e93a
2 changed files with 5 additions and 1 deletions

View File

@ -308,7 +308,10 @@ table.fields tr.verified td .fa.fa-check::before {
}
#window-instance #container .card {
margin-bottom: 1em;
max-width: 40em;
max-width: 50em;
}
#window-instance #filters-all {
max-width: 50em;
}
#window-instance #container #new-accounts .card {
width: calc(100vw - 4em);

View File

@ -477,6 +477,7 @@ window.view.instance = {
}
E.custom.btncollapse_render();
http.get('api/v1/config/filters/get?type=users', {}, function(js) {
js = js.sort((a,b) => a.preset_name.localeCompare(b.preset_name));
window.vars.user_filters = js;
E.template('filters-all', function(TPL) {
var html = '';