Skip to content

Commit

Permalink
vue/promql-query: Use same delimiters as the Vue app
Browse files Browse the repository at this point in the history
Using different delimiters in different components can be error prone and
confusing. Is better to stick to one kind of delimiters and use it always, for
the previous reasons and also for consistency.
  • Loading branch information
vincent-olivert-riera committed Oct 30, 2023
1 parent 49deefd commit a5e4c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions promgen/static/js/promgen.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Vue.filter("time", function (value, fmtstr = "yyyy-MM-dd HH:mm:ss") {
});

Vue.component("promql-query", {
delimiters: ['[[', ']]'],
props: ["href", "query", "max"],
data: function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion promgen/templates/promgen/vue/promql_query.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<span style="display: none" :title="load | percent" :class="classes">
{{ count | localize }} <slot></slot>
[[ count | localize ]] <slot></slot>
</span>

0 comments on commit a5e4c60

Please sign in to comment.