Fix table attributes
This commit is contained in:
parent
c8bcdb5154
commit
194715b536
3 changed files with 6 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -64,11 +64,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route {
|
|||
});
|
||||
}
|
||||
|
||||
resetController(controller, isExiting) {
|
||||
if (isExiting) {
|
||||
// controller.q = '';
|
||||
}
|
||||
|
||||
resetController() {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
{{/each-in}}
|
||||
</ButtonGroup>
|
||||
|
||||
Mode:
|
||||
Filters:
|
||||
<ButtonGroup class='mb-0 ml-2 mr-4'>
|
||||
{{#each this.modes as |item|}}
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Reference in a new issue