Fixed observer in dashboard
Change-Id: Icdfde7f01a35e066c8a4658872f2d19614aa7df4
diff --git a/src/index.ts b/src/index.ts
index 07cdead..0760b26 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -93,7 +93,7 @@
model: m.name,
related: m.relations,
xosTableCfg: {
- columns: ConfigHelpers.modeldefToTableCfg(m.fields, stateUrl),
+ columns: ConfigHelpers.modeldefToColumnsCfg(m.fields, stateUrl),
filter: 'fulltext',
order: {field: 'id', reverse: false}, // TODO understand dynamic interfaces
actions: [
@@ -134,8 +134,5 @@
// after setting up dynamic routes, redirect to previous state
$location.path(lastRoute);
- // $state.get().forEach(s => {
- // console.log(s.name, $state.href(s.name), s);
- // });
});
});