Fix content block bug

This commit is contained in:
Ramon Wenger 2019-07-29 09:40:12 +02:00
parent 04cfa18853
commit 981302192c
1 changed files with 4 additions and 1 deletions

View File

@ -174,6 +174,9 @@
return this.me.selectedClass; return this.me.selectedClass;
}, },
hidden() { hidden() {
if (!this.contentBlock.id || !this.contentBlock.visibleFor || !this.contentBlock.hiddenFor) {
return false;
}
if (this.contentBlock.userCreated) { if (this.contentBlock.userCreated) {
if (this.schoolClass.id === '') { if (this.schoolClass.id === '') {
return false; return false;
@ -260,7 +263,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: rgba(255,255,255,0.5); background: rgba(255, 255, 255, 0.5);
z-index: 10; z-index: 10;
} }
} }