Fix table attributes

This commit is contained in:
Stanislav Romanov 2022-10-24 10:07:42 +03:00
parent c8bcdb5154
commit 194715b536
3 changed files with 6 additions and 7 deletions

View file

@ -73,7 +73,10 @@ export default class AdminIndexesItemDocumentsIndexController extends Controller
}
get attributes() {
if (this.attributesToRetrieve.length > 0) {
if (
this.attributesToRetrieve.length > 0 &&
this.attributesToRetrieve[0] !== '*'
) {
return this.attributesToRetrieve;
} else {
return this.originalAttributes;

View file

@ -64,11 +64,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route {
});
}
resetController(controller, isExiting) {
if (isExiting) {
// controller.q = '';
}
resetController() {
window.scrollTo(0, 0);
}
}

View file

@ -13,7 +13,7 @@
{{/each-in}}
</ButtonGroup>
Mode:
Filters:
<ButtonGroup class='mb-0 ml-2 mr-4'>
{{#each this.modes as |item|}}
<Button