Commit 94284fb1 authored by David Foucher's avatar David Foucher

Fix missed comment in initial new modification rule

parent 00ca3138
Pipeline #3650 passed with stage
in 1 minute and 31 seconds
......@@ -41,7 +41,7 @@
<div v-show="ruleComment != ''">
<div id="rule-comment" class="mt-3 card collapse">
<div class="card-body">
<pre id="rule_comment_pre" v-html="this.ruleComment"></pre>
<pre id="rule_comment_pre" v-html="ruleComment"></pre>
</div>
</div>
</div>
......@@ -221,10 +221,9 @@
})
},
getContentRule: function(){
if(this.commit_id) {
let data_param = {
'file': this.filename,
'commit_id': this.commit_id,
'commit_id': this.commit_id?this.commit_id : 'HEAD',
}
this.$http
.get('/source/file', {params: data_param})
......@@ -235,7 +234,6 @@
if(response.status == 500) this.content = '';
return false;
})
} else this.content = this.ruleData;
},
auth_to_edit: function () {
this.error_flags.noUser = false;
......
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