Add MCI codes, helpers, and format keys for user availability and visibility

* New MCI codes: IA and IV
* availInicator and visIndicator to WFC format keys
* New helpers for availalbe and visible indicators (see themes)
This commit is contained in:
Bryan Ashby
2022-05-24 19:46:39 -06:00
parent 868e14aa8e
commit 2b3d5be3d9
8 changed files with 57 additions and 5 deletions

View File

@@ -348,7 +348,15 @@ exports.ThemeManager = class ThemeManager {
getDateTimeFormat : function(style = 'short') {
const format = Config().theme.dateTimeFormat[style] || 'MM/DD/YYYY h:mm a';
return _.get(theme, `customization.defaults.dateTimeFormat.${style}`, format);
}
},
getStatusAvailIndicators : function() {
const format = Config().theme.statusAvailableIndicators || [ 'Y', 'N' ];
return _.get(theme, 'customization.defaults.statusAvailableIndicators', format);
},
getStatusVisibleIndicators : function() {
const format = Config().theme.statusVisibleIndicators || [ 'Y', 'N' ];
return _.get(theme, 'customization.defaults.statusVisibleIndicators', format);
},
};
}