Commit bb35cdae authored by Lucas Détré's avatar Lucas Détré

fix on modification request to api calling always the same rule

parent e2cfe311
Pipeline #2220 passed with stage
in 1 minute and 17 seconds
......@@ -86,7 +86,7 @@
notModified: false,
}
},
mounted: function() {
beforeMount: function() {
this.loadInProgressModification();
},
computed: {
......@@ -106,9 +106,13 @@
methods: {
loadInProgressModification: function () {
this.$http
.get('/source/modified?branch='+decodeURIComponent('Auvergne-Rhône-Alpes'))
.get('/source/modified?branch='+encodeURIComponent(this.displayedName))
.then(response => {
return this.modification_list = response.body;
this.modification_list = response.body;
return true;
}, response => {
if(response.status == 500) this.modification_list = {};
return false;
})
},
edit: function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment