Switch app repo view to use cor-tabs, now that it supports horizontal tabs
This commit is contained in:
parent
ea13469d9d
commit
43619b6745
3 changed files with 87 additions and 79 deletions
|
@ -10,7 +10,6 @@ import { Input, Component, Inject } from 'ng-metadata/core';
|
|||
})
|
||||
export class AppPublicViewComponent {
|
||||
@Input('<') public repository: any;
|
||||
private currentTab: string = 'description';
|
||||
private settingsShown: number = 0;
|
||||
|
||||
constructor(@Inject('Config') private Config: any) {
|
||||
|
@ -22,10 +21,7 @@ export class AppPublicViewComponent {
|
|||
this.repository.put();
|
||||
}
|
||||
|
||||
public showTab(tab: string): void {
|
||||
this.currentTab = tab;
|
||||
if (tab == 'settings') {
|
||||
this.settingsShown++;
|
||||
}
|
||||
public showSettings(): void {
|
||||
this.settingsShown++;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue