-
+
diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index 5a28bd9..d96e6da 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -16,6 +16,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
deploymentNotificationSubscription: Subscription;
enabledLayouts: Set = config.dashboard.enabledLayouts;
layout: string = config.dashboard.currentLayout;
+ hide_messages: boolean = config.dashboard.hide_messages;
command_handlers = {'layout': this.layoutHandler.bind(this)};
constructor(private deploymentNotificationService: DeploymentNotificationService,
diff --git a/src/assets/scss/mixins/_layout.scss b/src/assets/scss/mixins/_layout.scss
index 80d8407..f8f1901 100644
--- a/src/assets/scss/mixins/_layout.scss
+++ b/src/assets/scss/mixins/_layout.scss
@@ -93,6 +93,17 @@ $layouts: (
}
}
+@mixin hide-component() {
+ // We need to make sure the DOM element is displayed but not visible
+ visibility: hidden;
+ position: absolute;
+ z-index: -10000000;
+}
+
+.hide-attribute {
+ @include hide-component();
+}
+
@function get-layout($layouts-key){
@return map_get($layouts, $layouts-key);
}
@@ -103,10 +114,7 @@ $layouts: (
@each $k, $v in $map {
#{$sel}#{$k} {
@if (length($v) == 0) {
- // We need to make sure the DOM element is displayed but not visible
- visibility: hidden;
- position: absolute;
- z-index: -10000000;
+ @include hide-component();
}
@else {
grid-column-start: nth($v, 1);