Skip to content

Commit

Permalink
Merge pull request #240 from Elite-Kode/enh-allow-pasted-spaces
Browse files Browse the repository at this point in the history
Allow factions, systems, and stations to have pasted spaces
  • Loading branch information
SayakMukhopadhyay authored Jul 25, 2021
2 parents b01c29a + 9586619 commit 382f0fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/main/stations/StationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
this.loading = true
return this.$store.dispatch('fetchStations', {
page: this.page,
beginsWith: value.newValue
beginsWith: value.newValue.trim()
})
})
)
Expand All @@ -114,7 +114,7 @@ export default {
this.loading = true
let stationsPaginated = await this.$store.dispatch('fetchStations', {
page: this.page,
beginsWith: this.stationName
beginsWith: this.stationName.trim()
})
this.setStations(stationsPaginated.docs)
this.totalStations = stationsPaginated.total
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/mixins/factionMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
fetchFactionsCall(page, factionName) {
return this.$store.dispatch('fetchFactions', {
page: page,
beginsWith: factionName
beginsWith: factionName.trim()
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/mixins/systemMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
fetchSystemsCall(page, systemName) {
return this.$store.dispatch('fetchSystems', {
page: page,
beginsWith: systemName
beginsWith: systemName.trim()
})
}
}
Expand Down

0 comments on commit 382f0fa

Please sign in to comment.