This commit is contained in:
@@ -36,22 +36,15 @@ export default {
|
||||
type: "GzDashTestLineWidgetMonthlyTotalPrice"
|
||||
},
|
||||
{
|
||||
id: "dashBizOnlyTest",
|
||||
roles: [role.BizAdminFull, role.BizAdminLimited],
|
||||
title: "Biz only test item",
|
||||
type: "GzDashBase"
|
||||
},
|
||||
{
|
||||
id: "dashTechOnlyTest",
|
||||
roles: [role.TechFull, role.TechLimited],
|
||||
title: "Tech only test item",
|
||||
type: "GzDashBase"
|
||||
},
|
||||
{
|
||||
id: "dashSalesOnlyTest",
|
||||
roles: [role.SalesFull, role.SalesLimited],
|
||||
title: "Sales only test item",
|
||||
type: "GzDashBase"
|
||||
id: "TestDayCalendarWidget",
|
||||
roles: [
|
||||
role.BizAdminFull,
|
||||
role.BizAdminLimited,
|
||||
role.SalesFull,
|
||||
role.SalesLimited
|
||||
],
|
||||
title: "Widget calendar",
|
||||
type: "GzDashTestDayCalendarWidget"
|
||||
}
|
||||
],
|
||||
availableItems() {
|
||||
@@ -62,11 +55,6 @@ export default {
|
||||
ret.push({ id: item.id, title: item.title, type: item.type });
|
||||
}
|
||||
}
|
||||
// for (const [key, value] of Object.entries(this.registry)) {
|
||||
// if (authorizationroles.hasRole(value.roles)) {
|
||||
// ret.push({ id: key, title: value.title, type: value.type });
|
||||
// }
|
||||
// }
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user