mirror of https://github.com/bra1n/townsquare.git
renaming extraTravelers to otherTravelers for consistancy accross the app
This commit is contained in:
parent
64f5621d7c
commit
a95b3065bd
|
@ -84,7 +84,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
// add out of script traveler reminders
|
// add out of script traveler reminders
|
||||||
this.$store.state.extraTravelers.forEach(role => {
|
this.$store.state.otherTravelers.forEach(role => {
|
||||||
if (players.some(p => p.role.id === role.id)) {
|
if (players.some(p => p.role.id === role.id)) {
|
||||||
reminders = [
|
reminders = [
|
||||||
...reminders,
|
...reminders,
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="tokens" v-if="tab === 'otherTravelers'">
|
<ul class="tokens" v-if="tab === 'otherTravelers'">
|
||||||
<li
|
<li
|
||||||
v-for="role in extraTravelers"
|
v-for="role in otherTravelers"
|
||||||
:class="[role.team]"
|
:class="[role.team]"
|
||||||
:key="role.id"
|
:key="role.id"
|
||||||
@click="setRole(role)"
|
@click="setRole(role)"
|
||||||
|
@ -54,8 +54,8 @@ export default {
|
||||||
components: { Token, Modal },
|
components: { Token, Modal },
|
||||||
props: ["playerIndex"],
|
props: ["playerIndex"],
|
||||||
computed: {
|
computed: {
|
||||||
extraTravelers() {
|
otherTravelers() {
|
||||||
return [...this.$store.state.extraTravelers.values()];
|
return [...this.$store.state.otherTravelers.values()];
|
||||||
},
|
},
|
||||||
availableRoles() {
|
availableRoles() {
|
||||||
const availableRoles = [];
|
const availableRoles = [];
|
||||||
|
|
|
@ -83,7 +83,7 @@ export default new Vuex.Store({
|
||||||
},
|
},
|
||||||
edition: editionJSONbyId.get("tb"),
|
edition: editionJSONbyId.get("tb"),
|
||||||
roles: getRolesByEdition(),
|
roles: getRolesByEdition(),
|
||||||
extraTravelers: getTravelersNotInEdition(),
|
otherTravelers: getTravelersNotInEdition(),
|
||||||
fabled
|
fabled
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
|
@ -196,7 +196,7 @@ export default new Vuex.Store({
|
||||||
);
|
);
|
||||||
|
|
||||||
// update travelers by edition list
|
// update travelers by edition list
|
||||||
state.extraTravelers = new Map(
|
state.otherTravelers = new Map(
|
||||||
rolesJSON
|
rolesJSON
|
||||||
.filter(r => r.team === "traveler" && !roles.some(i => i.id === r.id))
|
.filter(r => r.team === "traveler" && !roles.some(i => i.id === r.id))
|
||||||
.map(role => [role.id, role])
|
.map(role => [role.id, role])
|
||||||
|
@ -206,7 +206,7 @@ export default new Vuex.Store({
|
||||||
if (editionJSONbyId.has(edition.id)) {
|
if (editionJSONbyId.has(edition.id)) {
|
||||||
state.edition = editionJSONbyId.get(edition.id);
|
state.edition = editionJSONbyId.get(edition.id);
|
||||||
state.roles = getRolesByEdition(state.edition);
|
state.roles = getRolesByEdition(state.edition);
|
||||||
state.extraTravelers = getTravelersNotInEdition(state.edition);
|
state.otherTravelers = getTravelersNotInEdition(state.edition);
|
||||||
} else {
|
} else {
|
||||||
state.edition = edition;
|
state.edition = edition;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue