From 194715b536152f6e3a932374df5cc66dd73f6b87 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Mon, 24 Oct 2022 10:07:42 +0300 Subject: [PATCH] Fix table attributes --- app/controllers/admin/indexes/item/documents/index.js | 5 ++++- app/routes/admin/indexes/item/documents/index.js | 6 +----- app/templates/admin/indexes/item/documents/index.hbs | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/controllers/admin/indexes/item/documents/index.js b/app/controllers/admin/indexes/item/documents/index.js index 3d118f0..c2240e3 100644 --- a/app/controllers/admin/indexes/item/documents/index.js +++ b/app/controllers/admin/indexes/item/documents/index.js @@ -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; diff --git a/app/routes/admin/indexes/item/documents/index.js b/app/routes/admin/indexes/item/documents/index.js index acd7703..ba5b435 100644 --- a/app/routes/admin/indexes/item/documents/index.js +++ b/app/routes/admin/indexes/item/documents/index.js @@ -64,11 +64,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route { }); } - resetController(controller, isExiting) { - if (isExiting) { - // controller.q = ''; - } - + resetController() { window.scrollTo(0, 0); } } diff --git a/app/templates/admin/indexes/item/documents/index.hbs b/app/templates/admin/indexes/item/documents/index.hbs index 3f069ad..cd4e14b 100644 --- a/app/templates/admin/indexes/item/documents/index.hbs +++ b/app/templates/admin/indexes/item/documents/index.hbs @@ -13,7 +13,7 @@ {{/each-in}} - Mode: + Filters: {{#each this.modes as |item|}}