Commit 3325b037 authored by Brouwers, A.S.'s avatar Brouwers, A.S.
Browse files

Fix color selection & change settings alignment

parent 3ff00277
Pipeline #2579 failed with stages
in 1 minute and 35 seconds
......@@ -58,10 +58,10 @@ export default {
setColors: function (key) {
this.selectedPalette = key;
this.course = this.palettes[key].course;
this.quiz = this.palettes[key].quiz;
this.video = this.palettes[key].video;
this.assignment = this.palettes[key].assignment;
this.compareCourse = this.palettes[key].compareCourse;
this.course = this.palettes[key].colors.course;
this.quiz = this.palettes[key].colors.quiz;
this.video = this.palettes[key].colors.video;
this.assignment = this.palettes[key].colors.assignment;
this.compareCourse = this.palettes[key].colors.compareCourse;
},
}
......@@ -7,8 +7,12 @@
<tbody>
<tr>
<td width="80%">
<label for="switchid" id="hoverdesc">Enable tooltips:</label>
<label for="switchid" id="hoverdesc">
<b>Enable tooltips:</b>
</label>
</td>
</tr>
<tr>
<td>
<label class="switch switch-pill switch-primary" id="switchid">
<input type="checkbox" class="switch-input" v-model="hoverEnable" checked>
......@@ -18,8 +22,12 @@
</tr>
<tr>
<td>
<label for="switchid" id="warninglabel">Enable warnings:</label>
<label for="switchid" id="warninglabel">
<b>Enable warnings:</b>
</label>
</td>
</tr>
<tr>
<td>
<label class="switch switch-pill switch-primary" id="warningid">
<input type="checkbox" class="switch-input" v-model="warningEnable" checked>
......@@ -149,8 +157,12 @@
<tr>
<td>
<label>Color palette:</label>
<label>
<b>Color palette:</b>
</label>
</td>
</tr>
<tr>
<td>
<b-form-radio-group stacked v-model="selectedPalette">
<b-form-radio
......@@ -293,7 +305,6 @@ export default {
this.$store.commit("setPassingVal", this.passingval);
this.$store.commit("setWatchVal", this.watchval);
this.$store.commit("setDislikeVal", this.dislikeval);
colors.setColors(this.palettes[this.selectedPalette]);
colors.setColors(this.selectedPalette);
this.showAlertGeneral = true;
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment