From 476a312b4eca00c83e62babd9f25be089766a244 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lauri=20V=C3=B5sandi?=
Date: Tue, 29 Mar 2016 15:47:00 +0300
Subject: [PATCH] ui: Fix autosign subnets listing
---
certidude/static/js/templates.js | 2 +-
certidude/static/views/authority.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/certidude/static/js/templates.js b/certidude/static/js/templates.js
index b92d034..d5eede1 100644
--- a/certidude/static/js/templates.js
+++ b/certidude/static/js/templates.js
@@ -556,7 +556,7 @@ output += "\n anywhere\n
\n";
else {
output += "\n \n \n ";
frame = frame.push();
-var t_11 = runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "session")),"autosign_subnets");
+var t_11 = runtime.memberLookup((runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "session")),"authority")),"autosign_subnets");
if(t_11) {var t_10 = t_11.length;
for(var t_9=0; t_9 < t_11.length; t_9++) {
var t_12 = t_11[t_9];
diff --git a/certidude/static/views/authority.html b/certidude/static/views/authority.html
index 28a30bd..48dce07 100644
--- a/certidude/static/views/authority.html
+++ b/certidude/static/views/authority.html
@@ -72,7 +72,7 @@ as such require complete reset of X509 infrastructure if some of them needs to b
{% else %}
- {% for subnet in session.autosign_subnets %}
+ {% for subnet in session.authority.autosign_subnets %}
- {{ subnet }}
{% endfor %}