This commit is contained in:
2022-03-02 21:06:36 +00:00
parent b6a574d75a
commit de27b59e2b
5 changed files with 838 additions and 27 deletions

View File

@@ -5,6 +5,54 @@ const role = authorizationroles.AUTHORIZATION_ROLES;
*/
export default {
registry: [
{
roles: [
role.BizAdmin,
role.BizAdminRestricted,
role.ServiceRestricted,
role.Service,
role.Accounting
],
title: "DashboardCountWorkOrdersCreated",
icon: "$ayiChartLine",
type: "GzDashWorkOrderCreatedCountLine",
scheduleableUserOnly: false,
singleOnly: false,
settings: {
customTitle: null,
timeSpan: "*thisyear*",
interval: "day",
wotags: [],
wotagsany: true,
woitemtags: [],
woitemtagsany: true,
color: "#00205B"
}
},
{
roles: [
role.BizAdmin,
role.BizAdminRestricted,
role.ServiceRestricted,
role.Service,
role.Accounting
],
title: "DashboardCountWorkOrdersCreated",
icon: "$ayiChartBar",
type: "GzDashWorkOrderCreatedCountBar",
scheduleableUserOnly: false,
singleOnly: false,
settings: {
customTitle: null,
timeSpan: "*thisyear*",
wotags: [],
wotagsany: true,
woitemtags: [],
woitemtagsany: true,
interval: "month",
color: "#00205B"
}
},
{
roles: [
role.BizAdmin,
@@ -254,6 +302,10 @@ export default {
},
async cacheTranslationsForAvailableItems() {
const items = this.availableItems();
await window.$gz.translation.cacheTranslations(items.map(z => z.title));
//await window.$gz.translation.cacheTranslations(items.map(z => z.title));
await window.$gz.translation.cacheTranslations([
...new Set(items.map(z => z.title))
]);
}
};