Skip to content

Commit

Permalink
Merge pull request #5406 from jpcastil/master
Browse files Browse the repository at this point in the history
Integrated LoginWidget into edit to enable users to logout from the t…
  • Loading branch information
kevin-bates authored May 5, 2020
2 parents d8e8e00 + 978a733 commit ec5131c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion notebook/static/edit/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ requirejs([
'edit/js/savewidget',
'edit/js/notificationarea',
'bidi/bidi',
'auth/js/loginwidget',
], function(
$,
contents_service,
Expand All @@ -26,7 +27,8 @@ requirejs([
menubar,
savewidget,
notificationarea,
bidi
bidi,
loginwidget,
){
"use strict";

Expand All @@ -42,6 +44,10 @@ requirejs([

var base_url = utils.get_body_data('baseUrl');
var file_path = utils.get_body_data('filePath');
// This enables logout
var login_widget = new loginwidget.LoginWidget('#login_widget', {
base_url: base_url
});
var config = new configmod.ConfigSection('edit', {base_url: base_url});
config.load();
var common_config = new configmod.ConfigSection('common', {base_url: base_url});
Expand Down

0 comments on commit ec5131c

Please sign in to comment.