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

adding in progress modification count to rule page

parent 185f967a
Pipeline #2218 passed with stage
in 1 minute and 22 seconds
......@@ -86,16 +86,15 @@
notModified: false,
}
},
mounted: function() {
this.loadInProgressModification();
},
computed: {
displayedName: function () {
return this.name.split('.')[0];
},
modification_count: function () {
return this.modification_list.length;
},
modification_key: function() {
// TODO récupération de la clé niveau serveur
return "clé";
return Object.keys(this.modification_list).length;
},
ruleTree: function() {
return this.toTree(this.ruleData.split('\n'));
......@@ -105,6 +104,13 @@
},
},
methods: {
loadInProgressModification: function () {
this.$http
.get('/source/modified?branch='+decodeURIComponent('Auvergne-Rhône-Alpes'))
.then(response => {
return this.modification_list = response.body;
})
},
edit: function () {
this.content = this.ruleToEdit;
this.isEditMode=!this.isEditMode;
......
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