summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/page/logout.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/web-ui/app/js/page/logout.js b/web-ui/app/js/page/logout.js
index f598fa34..d881f6c2 100644
--- a/web-ui/app/js/page/logout.js
+++ b/web-ui/app/js/page/logout.js
@@ -18,10 +18,17 @@ define(['flight/lib/component', 'features', 'views/templates'], function (define
'use strict';
return defineComponent(function () {
+
+ this.render = function () {
+ var logoutHTML = templates.page.logout({ logout_url: features.getLogoutUrl() });
+ this.$node.html(logoutHTML);
+ };
+
this.after('initialize', function () {
if (features.isLogoutEnabled()) {
- this.$node.html(templates.page.logout({ logout_url: features.getLogoutUrl() }));
+ this.render();
}
});
+
});
});