Hi,
I'm trying to add a panel to the dashboard, but I cannot add a new item to the "Add" button.
By searching the code, I have found the file Dashboard.js, which get the registered dashboard...
Code
/**
* @class OMV.module.admin.system.general.AdminPasswd
* @derived OMV.workspace.dashboard.Dashboard
*/
Ext.define("OMV.module.admin.dashboard.Dashboard", {
extend: "OMV.workspace.dashboard.Dashboard",
getPartAliases: function() {
// Get the registered dashboard widgets aliases.
var aliases = Ext.ClassManager.getAliasesByExpression(
"part.module.admin.dashboard.part.*");
return aliases;
}
});
OMV.WorkspaceManager.registerPanel({
id: "dashboard",
path: "/diagnostic",
text: _("Dashboard"),
position: 1,
iconCls: "mdi mdi-view-dashboard",
className: "OMV.module.admin.dashboard.Dashboard"
});
Alles anzeigen
So the question is... Where do I register the dashboard widget ?
Thx