Skip to content

Commit 97f5827

Browse files
committed
vuejs base_component rerender params in order to use current url params (--> they may change during js runtime. this would not be reflected in the rerender call, because the component only uses the initial url params)
1 parent 6cc6d22 commit 97f5827

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/concepts/matestack/ui/core/component/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const componentMixin = {
2727
self.params["component_key"] = self.componentConfig["component_key"]
2828
axios({
2929
method: "get",
30-
url: self.componentConfig["origin_url"],
30+
url: location.pathname + location.search,
3131
headers: {
3232
'X-CSRF-Token': document.getElementsByName("csrf-token")[0].getAttribute('content')
3333
},
34-
params: self.params
34+
params: {"component_key": self.componentConfig["component_key"]}
3535
})
3636
.then(function(response){
3737
self.asyncTemplate = response["data"];

vendor/assets/javascripts/matestack-ui-core.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/assets/javascripts/matestack-ui-core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)