forked from 0x2620/pandora
main menu: set extras according to pandora.site.menuExtras
This commit is contained in:
parent
f06285185b
commit
eb89f530c8
1 changed files with 9 additions and 3 deletions
|
@ -9,9 +9,15 @@ pandora.ui.mainMenu = function() {
|
||||||
fromMenu = false,
|
fromMenu = false,
|
||||||
fullscreenState = Ox.Fullscreen.getState(),
|
fullscreenState = Ox.Fullscreen.getState(),
|
||||||
that = Ox.MainMenu({
|
that = Ox.MainMenu({
|
||||||
extras: [
|
extras: pandora.site.menuExtras.map(function(menuExtra) {
|
||||||
pandora.$ui.loadingIcon = pandora.ui.loadingIcon()
|
if (menuExtra == 'user') {
|
||||||
],
|
return pandora.$ui.userButton = pandora.ui.userButton();
|
||||||
|
} else if (menuExtra == 'locale') {
|
||||||
|
return pandora.$ui.localeButton = pandora.ui.localeButton();
|
||||||
|
} else if (menuExtra == 'reload') {
|
||||||
|
return pandora.$ui.loadingIcon = pandora.ui.loadingIcon();
|
||||||
|
}
|
||||||
|
}),
|
||||||
id: 'mainMenu',
|
id: 'mainMenu',
|
||||||
menus: [].concat(
|
menus: [].concat(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue