[+] Encapsulate displayRate()
This commit is contained in:
@@ -29,6 +29,8 @@
|
|||||||
import {Component, Prop, Vue} from 'vue-property-decorator';
|
import {Component, Prop, Vue} from 'vue-property-decorator';
|
||||||
import Course from '@/logic/course';
|
import Course from '@/logic/course';
|
||||||
import App from '@/components/app/app';
|
import App from '@/components/app/app';
|
||||||
|
import {GPAUtils} from '@/logic/utils/gpa-utils';
|
||||||
|
import Constants from '@/constants';
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export default class CourseHead extends Vue
|
export default class CourseHead extends Vue
|
||||||
@@ -47,6 +49,11 @@
|
|||||||
if (!this.clickable) return;
|
if (!this.clickable) return;
|
||||||
App.instance.nav.updateIndex(this.course.urlIndex);
|
App.instance.nav.updateIndex(this.course.urlIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get displayRate()
|
||||||
|
{
|
||||||
|
return !this.course.rated && Constants.CURRENT_TERM == 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user