[+] Allow changing rating
This commit is contained in:
@@ -2,8 +2,10 @@
|
|||||||
<div id="course-head" class="course-card-content main vertical-center">
|
<div id="course-head" class="course-card-content main vertical-center">
|
||||||
|
|
||||||
<!-- Rating button -->
|
<!-- Rating button -->
|
||||||
<div id="block-rate" v-if="displayRate" class="vertical-center clickable" @click="ratingDialog = true">
|
<div id="block-rate" v-if="displayRate" class="vertical-center clickable"
|
||||||
Give a<br>Rating!
|
@click="ratingDialog = true" :class="{rated: course.rated}">
|
||||||
|
<span v-if="!course.rated">Give a<br>Rating!</span>
|
||||||
|
<span v-else>Rating<br>Entered</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main content -->
|
<!-- Main content -->
|
||||||
@@ -115,7 +117,7 @@
|
|||||||
*/
|
*/
|
||||||
get displayRate()
|
get displayRate()
|
||||||
{
|
{
|
||||||
return this.clickable && !this.course.rated && Constants.CURRENT_TERM == 3;
|
return this.clickable && Constants.CURRENT_TERM == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user