feature: choose which noticeboard components to display with the link builder

also restyle noticeboard using flex
This commit is contained in:
Gary Sharp
2025-01-22 17:58:45 +11:00
parent 50603210b0
commit dee54bb6d7
12 changed files with 601 additions and 456 deletions
@@ -284,6 +284,17 @@
$.each(queryStringParameters, function (key, value) {
switch (key.toLowerCase()) {
case 'components':
const showComponents = value.split(",");
if (showComponents.length > 0) {
const components = ['inProcess', 'readyForReturn', 'waitingForUserAction'];
components.forEach(function (component) {
if (!showComponents.includes(component)) {
$('body').addClass('hide-' + component);
}
});
}
break;
case 'theme': // THEME
setTheme(value);
fixedTheme = value;