Commit 9afe4622 by kevalbhatt Committed by nixonrodrigues

ATLAS-3364 : UI: Compose logout url from Atlas base path (URI)

parent add9fac4
......@@ -44,7 +44,7 @@
<li class="aboutAtlas"><a href="javascript:void(0)">About</a></li>
<li role="separator" class="divider"></li>
<li>
<a href="logout.html"><i class="fa fa-sign-out"></i>Logout</a>
<a data-id="signOut" href="javascript:void(0)"><i class="fa fa-sign-out"></i>Logout</a>
</li>
</ul>
</td>
......
......@@ -33,7 +33,8 @@ define(['require',
backButton: "[data-id='backButton']",
menuHamburger: "[data-id='menuHamburger']",
globalSearch: "[data-id='globalSearch']",
clearGlobalSearch: "[data-id='clearGlobalSearch']"
clearGlobalSearch: "[data-id='clearGlobalSearch']",
signOut: "[data-id='signOut']"
},
events: function() {
var events = {};
......@@ -68,6 +69,10 @@ define(['require',
});
$('body').toggleClass("full-screen");
};
events['click ' + this.ui.signOut] = function() {
var path = Utils.getBaseUrl(window.location.pathname);
window.location = path + "/logout.html";
};
return events;
},
......
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