Commit 9d10aac2 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Dynamically set user quota url in ui

parent 52c23bb7
......@@ -743,7 +743,7 @@
load_user_quotas: function() {
var main_view = this;
snf.api.sync('read', undefined, {
url:'/ui/userquota',
url: synnefo.config.quota_url,
success: function(d) {
snf.user.quotas = {};
snf.user.quotas['vms'] = d.vms_quota;
......
......@@ -630,6 +630,7 @@
synnefo.config.grouped_public_network_name = {{ grouped_public_network_name|safe }};
synnefo.config.vm_hostname_format = {{ vm_hostname_format|safe }};
synnefo.config.automatic_network_range_format = {{ automatic_network_range_format|safe }};
synnefo.config.quota_url = '{% url synnefo.ui.views.user_quota %}';
synnefo.auth_client = new synnefo.auth.AstakosClient({
login_url: synnefo.config.login_redirect,
......
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