Activate first menu item if first cat is headless

This commit is contained in:
Roman Hotsiy 2016-12-02 12:53:47 +02:00
parent 8731adf2a3
commit 82f4598a5b
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,9 @@ export class MenuService {
setActiveByHash(hash) {
if (!hash) {
if (this.categories[0].headless) {
this.activate(0, 0);
}
return;
}
let catIdx, methodIdx;

View File

@ -28,6 +28,7 @@ export interface MenuCategory {
empty?: string;
virtual?: boolean;
ready: boolean;
headless: boolean;
}
// global var for this module