feature: choose which noticeboard components to display with the link builder
also restyle noticeboard using flex
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user