From eed359e2b6d35fe444353f115237d41d6acad9dc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Mar 2021 18:38:12 +0100 Subject: improving display options to the admin view --- app/node_modules/okadminview/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/node_modules/okadminview/index.js b/app/node_modules/okadminview/index.js index 6d441bd..709e630 100644 --- a/app/node_modules/okadminview/index.js +++ b/app/node_modules/okadminview/index.js @@ -378,6 +378,7 @@ function fetchIndexTemplateData(meta, queries, dashboardConfig) { descending: descending, display: dashConf.display, title: dashConf.title || "title", + subtitle: dashConf.subtitle || null, } } return acc @@ -448,7 +449,7 @@ function fetchForeignKeyOptions(resource) { function fillOptions(results) { return Q.promise(function(resolve, reject) { spec[field].options = results.map(function(result) { - return result.id + return [result.id, result.title] }) resolve() }) -- cgit v1.2.3-70-g09d2