Skip to content

Business intelligence made simple

Preserve whitespace with Vue 3 [skip ci]

Andrew Kane1837045303e9
diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erb
index 37516b37..c33dbb1b 100644
--- a/app/views/blazer/dashboards/_form.html.erb
+++ b/app/views/blazer/dashboards/_form.html.erb
@@ -23,7 +23,7 @@
</div>
<p style="padding-bottom: 140px;" v-cloak>
<% if @dashboard.persisted? %>
- <%= link_to "Delete", dashboard_path(@dashboard), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger"%>
+ <%= link_to "Delete", dashboard_path(@dashboard), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger" %>
<% end %>
<%= f.submit "Save", class: "btn btn-success" %>
<%= link_to "Back", :back, class: "btn btn-link" %>
@@ -68,7 +68,10 @@
}
})
}
- }).mount("#app")
+ })
+ app.config.compilerOptions.whitespace = "preserve"
+ app.mount("#app")
+
Sortable.create($("#queries").get(0), {
onEnd: function(e) {
app.queries.splice(e.newIndex, 0, app.queries.splice(e.oldIndex, 1)[0])
diff --git a/app/views/blazer/queries/_form.html.erb b/app/views/blazer/queries/_form.html.erb
index 296a6de8..9e7fe393 100644
--- a/app/views/blazer/queries/_form.html.erb
+++ b/app/views/blazer/queries/_form.html.erb
@@ -247,5 +247,7 @@
this.showEditor()
}
- }).mount("#app")
+ })
+ app.config.compilerOptions.whitespace = "preserve"
+ app.mount("#app")
</script>
diff --git a/app/views/blazer/queries/home.html.erb b/app/views/blazer/queries/home.html.erb
index b2b7b515..80795fd3 100644
--- a/app/views/blazer/queries/home.html.erb
+++ b/app/views/blazer/queries/home.html.erb
@@ -163,5 +163,7 @@
}
}
}
- }).mount("#queries")
+ })
+ app.config.compilerOptions.whitespace = "preserve"
+ app.mount("#queries")
</script>