Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes campus prop in contact-adviser #267

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pathways_vue/components/common/contact-adviser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export default {
computed: {
advisingInfo: function () {
let infoArray = [];
if (this.campus == "tacoma") {
if (this.campus == "Tacoma") {
infoArray = [
{
label: "Find your Tacoma adviser",
url: "https://www.tacoma.uw.edu/gaa#permalink-37917",
},
];
} else if (this.campus == "seattle") {
} else if (this.campus == "Seattle") {
infoArray = [
{
label: "Find your premajor adviser",
Expand All @@ -54,7 +54,7 @@ export default {
"majors/advising-offices-by-program",
},
];
} else if (this.campus == "bothell") {
} else if (this.campus == "Bothell") {
infoArray = [
{
label: "Find your Bothell adviser",
Expand Down
7 changes: 1 addition & 6 deletions pathways_vue/pages/major.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<common-courses :major="major_data" />
</div>
<div class="col-md-9">
<contact-adviser :campus="campus" :type="'major'" />
<contact-adviser :campus="major_data.major_campus" :type="'major'" />
</div>
</div>
<div v-else class="row order-2 justify-content-sm-center">
Expand Down Expand Up @@ -76,7 +76,6 @@ export default {
selectedMajor: undefined,
majorID: undefined,
majorTitle: undefined,
campus: undefined,
major_data: undefined,
showError: false,
appName: "DawgPath",
Expand Down Expand Up @@ -120,10 +119,6 @@ export default {
},
mounted() {
this.majorID = this.$route.query.id;
this.campus = this.$route.query.campus;
if (this.campus == undefined || this.majorID == undefined) {
this.showError = true;
}
},
watch: {
majorID() {
Expand Down
Loading