Skip to content

Commit

Permalink
meshdirectory: pass query params to selected provider (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekys authored Jun 22, 2020
1 parent 4925dc7 commit 5fb4422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/meshdirectory/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ <h5>Service description:</h5>
},
methods: {
providerLink(provider) {
return this.ocmService(provider).AdditionalEndpoints[0].Path
const query = this.queryParams.toString() ? `?${this.queryParams}` : ''
return `${this.ocmService(provider).AdditionalEndpoints[0].Path}${query}`
},
ocmService(provider) {
return provider.Services.find(s => {
Expand Down

0 comments on commit 5fb4422

Please sign in to comment.