Commit f4637f5 1 parent 7a96110 commit f4637f5 Copy full SHA for f4637f5
File tree 1 file changed +19
-2
lines changed
kolibri/plugins/coach/assets/src/views/common
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 27
27
</div >
28
28
</div >
29
29
<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
+ >
31
35
<span >
32
36
{{ warningForQuizFromOldKolibri$() }}
33
37
</span >
86
90
resource () {
87
91
return this .examOrLesson === ' lesson' ? this .lesson : this .exam ;
88
92
},
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
+ },
89
102
isFromOldKolibiri () {
90
- return this .exam . data_model_version < 3 && this .exam . draft && ! this .exam . active ;
103
+ return this .isOldDataModelVersion && this .isExamDraft () && ! this .isActive () ;
91
104
},
92
105
},
93
106
};
118
131
margin-bottom : 0 ;
119
132
}
120
133
134
+ .old-kolibri-banner {
135
+ margin-top : 0.5em ;
136
+ }
137
+
121
138
</style >
You can’t perform that action at this time.
0 commit comments