Merge pull request #1050 from mozilla/hide-preferences
Hide the preferences menu for the beta
This commit is contained in:
commit
4557a352f8
1 changed files with 21 additions and 17 deletions
|
@ -25,7 +25,7 @@ import Raven from 'raven-js';
|
||||||
|
|
||||||
import { setApiUrlPrefix } from '../app/api';
|
import { setApiUrlPrefix } from '../app/api';
|
||||||
import metrics from '../app/metrics';
|
import metrics from '../app/metrics';
|
||||||
import assets from '../common/assets';
|
//import assets from '../common/assets';
|
||||||
import Header from '../app/ui/header';
|
import Header from '../app/ui/header';
|
||||||
import storage from '../app/storage';
|
import storage from '../app/storage';
|
||||||
import controller from '../app/controller';
|
import controller from '../app/controller';
|
||||||
|
@ -50,26 +50,30 @@ app.use(intents);
|
||||||
|
|
||||||
function body(main) {
|
function body(main) {
|
||||||
return function(state, emit) {
|
return function(state, emit) {
|
||||||
return html`
|
/*
|
||||||
<body
|
Disable the preferences menu for now since it is ugly and isn't
|
||||||
class="flex flex-col items-center font-sans bg-blue-lightest h-screen"
|
relevant to the beta
|
||||||
>
|
function clickPreferences(event) {
|
||||||
<a
|
event.preventDefault();
|
||||||
|
emit('pushState', '/preferences');
|
||||||
|
}
|
||||||
|
|
||||||
|
const menu = html`<a
|
||||||
id="hamburger"
|
id="hamburger"
|
||||||
class="absolute pin-t pin-r z-50"
|
class="absolute pin-t pin-r z-50"
|
||||||
href="#"
|
href="#"
|
||||||
onclick="${clickPreferences}"
|
onclick="${clickPreferences}"
|
||||||
>
|
>
|
||||||
<img src="${assets.get('preferences.png')}" />
|
<img src="${assets.get('preferences.png')}" />
|
||||||
</a>
|
</a>`;
|
||||||
|
*/
|
||||||
|
return html`
|
||||||
|
<body
|
||||||
|
class="flex flex-col items-center font-sans bg-blue-lightest h-screen"
|
||||||
|
>
|
||||||
${state.cache(Header, 'header').render()} ${main(state, emit)}
|
${state.cache(Header, 'header').render()} ${main(state, emit)}
|
||||||
</body>
|
</body>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function clickPreferences(event) {
|
|
||||||
event.preventDefault();
|
|
||||||
emit('pushState', '/preferences');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(async function start() {
|
(async function start() {
|
||||||
|
|
Loading…
Reference in a new issue