Skip to content

Commit

Permalink
beep boop Github Action Master Branch CI Prettier hard at work
Browse files Browse the repository at this point in the history
  • Loading branch information
I'm a Github Action committed Nov 18, 2021
1 parent ff7845c commit a04f8e7
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions src/web/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
YACS
</b-navbar-brand>
<div>
<b-dropdown variant="outline-primary"
size = "sm"
:text= selectedSemester
class= "m-md-2">
<b-dropdown-item v-for="option in semesterOptions"
:key="option.value"
:value="option.value"
@click="selectSemester(option.value)">

{{option.value}}
<b-dropdown
variant="outline-primary"
size="sm"
:text="selectedSemester"
class="m-md-2"
>
<b-dropdown-item
v-for="option in semesterOptions"
:key="option.value"
:value="option.value"
@click="selectSemester(option.value)"
>
{{ option.value }}
</b-dropdown-item>
</b-dropdown>
</div>
Expand Down Expand Up @@ -88,8 +91,13 @@
</template>

<script>
import { SELECT_SEMESTER, COOKIE_DARK_MODE, TOGGLE_DARK_MODE, SAVE_DARK_MODE,
RESET_DARK_MODE } from "@/store";
import {
SELECT_SEMESTER,
COOKIE_DARK_MODE,
TOGGLE_DARK_MODE,
SAVE_DARK_MODE,
RESET_DARK_MODE,
} from "@/store";
import { mapState, mapActions, mapGetters } from "vuex";
import LoginComponent from "@/components/Login";
import { userTypes } from "../store/modules/user";
Expand Down Expand Up @@ -165,14 +173,14 @@ export default {
}),
...mapState({ sessionId: userTypes.state.SESSION_ID }),
...mapState(["semesters", "selectedSemester"]),
semesterOptions() {
return this.semesters.map(({ semester }) => ({
text: semester,
value: semester,
}));
},
}
},
};
</script>

Expand Down

0 comments on commit a04f8e7

Please sign in to comment.