This commit is contained in:
@@ -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))
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user