Fix apps view for mobile

Fixes https://www.pivotaltracker.com/story/show/144543995
This commit is contained in:
Joseph Schorr 2017-05-08 16:55:47 -04:00
parent 43619b6745
commit c4e3a5e0a7
3 changed files with 11 additions and 20 deletions

View file

@ -15,11 +15,12 @@ import { CorTabCurrentHandler, LocationCurrentTabHandler, CookieCurrentTabHandle
}
})
export class CorTabPanelComponent implements OnDestroy {
// If 'true', the currently selected tab will be remembered via a cookie and not the page URL.
// If supplied, the currently selected tab will be remembered via the named cookie and not
// the page URL.
@Input('@') public rememberCookie: string;
// If 'true', the tabs will be displayed vertically, as opposed to horizontally.
@Input('@') public verticalTabs: string;
@Input('<') public verticalTabs: boolean;
// The tabs under this tabs component.
private tabs: CorTabComponent[] = [];
@ -52,7 +53,7 @@ export class CorTabPanelComponent implements OnDestroy {
* isVertical returns true if the tabs in this panel are displayed vertically.
*/
public isVertical(): boolean {
return this.verticalTabs == 'true';
return this.verticalTabs;
}
public tabClicked(tab: CorTabComponent): void {