@@ -75,7 +75,8 @@ FrameTrail.defineModule('Titlebar', function(FrameTrail){
7575 } ) ;
7676
7777 UserSettingsButton . click ( function ( ) {
78- if ( FrameTrail . getState ( 'storageMode' ) === 'local' ) {
78+ var _smBtn = FrameTrail . getState ( 'storageMode' ) ;
79+ if ( _smBtn === 'local' || _smBtn === 'download' ) {
7980 showLocalUserDialog ( ) ;
8081 } else {
8182 FrameTrail . module ( 'UserManagement' ) . showAdministrationBox ( ) ;
@@ -363,12 +364,13 @@ FrameTrail.defineModule('Titlebar', function(FrameTrail){
363364 // Show user settings and logout buttons if logged in
364365 if ( FrameTrail . getState ( 'loggedIn' ) ) {
365366 UserSettingsButton . show ( ) ;
366- if ( FrameTrail . getState ( 'storageMode' ) !== 'local' ) {
367+ var _smLogin = FrameTrail . getState ( 'storageMode' ) ;
368+ if ( _smLogin !== 'local' && _smLogin !== 'download' ) {
367369 domElement . find ( '.logoutButton' ) . show ( ) ;
368370 }
369371 }
370- // In local mode, always show user settings (for name/color change)
371- if ( FrameTrail . getState ( 'storageMode' ) === 'local' ) {
372+ // In local/download mode, always show user settings (for name/color change)
373+ if ( FrameTrail . getState ( 'storageMode' ) === 'local' || FrameTrail . getState ( 'storageMode' ) === 'download' ) {
372374 UserSettingsButton . show ( ) ;
373375 }
374376
@@ -381,7 +383,8 @@ FrameTrail.defineModule('Titlebar', function(FrameTrail){
381383 StartEditButton . show ( ) ;
382384
383385 // Hide Edit Button when no storage backend is available
384- if ( ! FrameTrail . module ( 'RouteNavigation' ) . environment . server && FrameTrail . getState ( 'storageMode' ) !== 'local' ) {
386+ var _sm = FrameTrail . getState ( 'storageMode' ) ;
387+ if ( ! FrameTrail . module ( 'RouteNavigation' ) . environment . server && _sm !== 'local' && _sm !== 'download' ) {
385388 StartEditButton . hide ( ) ;
386389 }
387390
@@ -411,7 +414,8 @@ FrameTrail.defineModule('Titlebar', function(FrameTrail){
411414
412415 // Only show user settings and logout buttons if in edit mode
413416 if ( FrameTrail . getState ( 'editMode' ) ) {
414- if ( FrameTrail . getState ( 'storageMode' ) !== 'local' ) {
417+ var _smCul = FrameTrail . getState ( 'storageMode' ) ;
418+ if ( _smCul !== 'local' && _smCul !== 'download' ) {
415419 domElement . find ( '.logoutButton' ) . show ( ) ;
416420 }
417421 UserSettingsButton . show ( ) ;
0 commit comments