Skip to content

Modular logistics and supply chain operating system (LSOS)

Fix dashboard component and initialize widget options

Turtuvshin74fd36985477
diff --git a/console/app/components/dashboard.js b/console/app/components/dashboard.js
index 50531427..df8aaa52 100644
--- a/console/app/components/dashboard.js
+++ b/console/app/components/dashboard.js
@@ -65,7 +65,6 @@ export default class DashboardComponent extends Component {
this.isEditingDashboard = true;
if (typeof options.successNotification === 'function') {
this.notifications.success(options.successNotification(response));
- this.notifications.warning;
} else {
this.notifications.success(options.successNotification || `${response.name} created.`);
}
diff --git a/console/app/instance-initializers/initialize-widgets.js b/console/app/instance-initializers/initialize-widgets.js
index d5cf1b8a..7dba3e9d 100644
--- a/console/app/instance-initializers/initialize-widgets.js
+++ b/console/app/instance-initializers/initialize-widgets.js
@@ -6,7 +6,10 @@ export function initialize(application) {
name: 'Open Issues',
component: 'dashboard/count',
grid_options: { w: 2, h: 2 },
- options: {},
+ options: {
+ title: 'Open Issues',
+ value: 0,
+ },
},
];
@@ -15,7 +18,10 @@ export function initialize(application) {
name: 'Total Products',
component: 'dashboard/count',
grid_options: { w: 2, h: 2 },
- options: {},
+ options: {
+ title: 'Total Products',
+ value: 0,
+ },
},
];
@@ -24,13 +30,19 @@ export function initialize(application) {
name: 'User count',
component: 'dashboard/count',
grid_options: { w: 2, h: 2 },
- options: {},
+ options: {
+ title: 'User count',
+ value: 0,
+ },
},
{
name: 'Group count',
component: 'dashboard/count',
grid_options: { w: 2, h: 2 },
- options: {},
+ options: {
+ title: 'Group count',
+ value: 0,
+ },
},
];
@@ -39,13 +51,17 @@ export function initialize(application) {
name: 'Fleetbase Blog',
component: 'fleetbase-blog',
grid_options: { w: 8, h: 3 },
- options: {},
+ options: {
+ title: 'Fleetbase Blog',
+ },
},
{
name: 'Github Card',
component: 'github-card',
grid_options: { w: 4, h: 3 },
- options: {},
+ options: {
+ title: 'Github Card',
+ },
},
...fleetOpsWidgets,
...storefrontWidgets,