-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add getters for tstore access
feeding the consistency hobgoblin
- Loading branch information
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,12 @@ [email protected] | |
<b-link :to="solo" title="Solo Mode">Solo Mode</b-link> | ||
</li> | ||
<li> | ||
<b-link | ||
v-if="$tstore.state.isFreePlayEnabled" | ||
:to="freePlayLobby" | ||
title="Port of Mars Free Play" | ||
<b-link v-if="isFreePlayEnabled" :to="freePlayLobby" title="Port of Mars Free Play" | ||
>Free Play</b-link | ||
> | ||
</li> | ||
<li> | ||
<b-link | ||
v-if="$tstore.state.isFreePlayEnabled" | ||
:to="tournamentDashboard" | ||
title="Join Mars Madness" | ||
<b-link v-if="isTournamentEnabled" :to="tournamentDashboard" title="Join Mars Madness" | ||
>Join Mars Madness</b-link | ||
> | ||
</li> | ||
|
@@ -132,6 +126,14 @@ export default class Footer extends Vue { | |
get constants() { | ||
return Constants; | ||
} | ||
|
||
get isTournamentEnabled() { | ||
return this.$tstore.state.isTournamentEnabled; | ||
} | ||
|
||
get isFreePlayEnabled() { | ||
return this.$tstore.state.isFreePlayEnabled; | ||
} | ||
} | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters