Skip to content

Commit f4637f5

Browse files
committed
changes the banner background color to yellow
1 parent 7a96110 commit f4637f5

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

kolibri/plugins/coach/assets/src/views/common/QuizLessonDetailsHeader.vue

+19-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
</div>
2828
</div>
2929
<MissingResourceAlert v-if="resource.missing_resource" />
30-
<UiAlert v-if="isFromOldKolibiri">
30+
<UiAlert
31+
v-if="isFromOldKolibiri"
32+
type="warning"
33+
class="old-kolibri-banner"
34+
>
3135
<span>
3236
{{ warningForQuizFromOldKolibri$() }}
3337
</span>
@@ -86,8 +90,17 @@
8690
resource() {
8791
return this.examOrLesson === 'lesson' ? this.lesson : this.exam;
8892
},
93+
isActive() {
94+
return this.exam.active;
95+
},
96+
isExamDraft() {
97+
return this.exam.draft;
98+
},
99+
isOldDataModelVersion() {
100+
return this.exam.data_model_version < 3;
101+
},
89102
isFromOldKolibiri() {
90-
return this.exam.data_model_version < 3 && this.exam.draft && !this.exam.active;
103+
return this.isOldDataModelVersion && this.isExamDraft() && !this.isActive();
91104
},
92105
},
93106
};
@@ -118,4 +131,8 @@
118131
margin-bottom: 0;
119132
}
120133
134+
.old-kolibri-banner {
135+
margin-top: 0.5em;
136+
}
137+
121138
</style>

0 commit comments

Comments
 (0)