|
7 | 7 | 'mediaCenterWidgetServices', |
8 | 8 | 'mediaCenterWidgetFilters', |
9 | 9 | 'mediaCenterWidgetModals', |
| 10 | + 'mediaCenterWidgetHandlers', |
10 | 11 | 'ngAnimate', |
11 | 12 | 'ngRoute', |
12 | 13 | 'ui.bootstrap', |
|
320 | 321 | $httpProvider.interceptors.push(interceptor); |
321 | 322 |
|
322 | 323 | }]) |
323 | | - .run(['Location', '$location', '$rootScope', '$window', 'Messaging', 'EVENTS', 'PATHS', 'DB', 'COLLECTIONS', function (Location, $location, $rootScope, $window, Messaging, EVENTS, PATHS, DB, COLLECTIONS) { |
| 324 | + .run(['Location', '$location', '$rootScope', '$window', 'Messaging', 'EVENTS', 'PATHS', 'openedMediaHandler', function (Location, $location, $rootScope, $window, Messaging, EVENTS, PATHS, openedMediaHandler) { |
| 325 | + openedMediaHandler.sync(); |
| 326 | + buildfire.appearance.navbar.show(null, (err) => { |
| 327 | + if (err) return console.error(err); |
| 328 | + console.log('Navbar is visible'); |
| 329 | + }); |
324 | 330 | buildfire.navigation.onBackButtonClick = function () { |
325 | 331 | if ($rootScope.fullScreen) { |
326 | 332 | $rootScope.goingBackFullScreen = true; |
|
342 | 348 | $("#showFeedBtn").click(); |
343 | 349 | $rootScope.showGlobalPlaylistButtons = true; |
344 | 350 | if (!$rootScope.$$phase) $rootScope.$digest(); |
| 351 | + buildfire.appearance.navbar.show(null, (err) => { |
| 352 | + if (err) return console.error(err); |
| 353 | + console.log('Navbar is visible'); |
| 354 | + }); |
345 | 355 | } else { |
346 | 356 | if ($rootScope.currentlyDownloading.length > 0) { |
347 | 357 | buildfire.dialog.confirm( |
|
414 | 424 | $rootScope.showGlobalPlaylistButtons = false; |
415 | 425 | } else $rootScope.showGlobalPlaylistButtons = true; |
416 | 426 |
|
| 427 | + if (path.indexOf('/media') === 0 || $("#feedView").hasClass('showing')) { |
| 428 | + buildfire.appearance.navbar.show(null, (err) => { |
| 429 | + if (err) return console.error(err); |
| 430 | + console.log('Navbar is visible'); |
| 431 | + }); |
| 432 | + } else if(path.indexOf('/nowplaying') === 0 && !$("#feedView").hasClass('showing')){ |
| 433 | + console.log('nav',$("#feedView").hasClass('showing')); |
| 434 | + buildfire.appearance.navbar.hide(null, (err) => { |
| 435 | + if (err) return console.error(err); |
| 436 | + console.log('Navbar is hidden'); |
| 437 | + }); |
| 438 | + } |
| 439 | + |
417 | 440 | if (!$rootScope.$$phase) $rootScope.$digest(); |
418 | 441 | }); |
419 | 442 |
|
|
0 commit comments