This commit is contained in:
@@ -16,7 +16,7 @@ export default {
|
||||
{
|
||||
id: "NextSchedItems",
|
||||
roles: [role.Tech, role.TechRestricted],
|
||||
title: "TEST sched user widget",
|
||||
title: "DashboardScheduled",
|
||||
type: "NextSchedItems",
|
||||
scheduleableUserOnly: true
|
||||
},
|
||||
@@ -74,5 +74,9 @@ export default {
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
async cacheTranslationsForAvailableItems() {
|
||||
const items = this.availableItems();
|
||||
await window.$gz.translation.cacheTranslations(items.map(z => z.title));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -414,7 +414,12 @@ export default {
|
||||
//https://moment.github.io/luxon/api-docs/index.html#datetimeplus
|
||||
//
|
||||
addDurationToUTC8601String(val, duration) {
|
||||
if (!val || val == "" || duration == null || !this.isObject(duration)) {
|
||||
if (
|
||||
!val ||
|
||||
val == "" ||
|
||||
duration == null ||
|
||||
!typeof duration === "object"
|
||||
) {
|
||||
return val;
|
||||
}
|
||||
//instantiate a luxon date object from val which is assumed to be an iso string
|
||||
|
||||
Reference in New Issue
Block a user