From 7facfcd3e83c90440814315f1c29416a366f67b9 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Thu, 27 Oct 2022 07:25:14 +0300 Subject: [PATCH] Removed getSortableAttributes --- app/models/index.js | 5 ----- app/routes/admin/indexes/item/documents/index.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/models/index.js b/app/models/index.js index 4e37f97..8b377dd 100644 --- a/app/models/index.js +++ b/app/models/index.js @@ -31,11 +31,6 @@ export default class Index { }; } - // TODO: replace to getSetting - getSortableAttributes() { - return query(`${this.path}/settings/sortable-attributes`); - } - getStats() { return query(`${this.path}/stats`); } diff --git a/app/routes/admin/indexes/item/documents/index.js b/app/routes/admin/indexes/item/documents/index.js index 793bd9f..e03a4ba 100644 --- a/app/routes/admin/indexes/item/documents/index.js +++ b/app/routes/admin/indexes/item/documents/index.js @@ -68,7 +68,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route { index, searchSchema, data: index.search(options), - sortableAttributes: index.getSortableAttributes(), + sortableAttributes: index.getSetting('sortable-attributes'), displayedAttributes: index.getSetting('displayed-attributes'), stats: index.getStats(), });