mirror of https://github.com/goharbor/harbor.git
25 lines
624 B
TypeScript
25 lines
624 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
import { SessionService } from "../../../shared/services/session.service";
|
|
|
|
@Component({
|
|
selector: "app-gc-page",
|
|
templateUrl: "./gc-page.component.html",
|
|
styleUrls: ["./gc-page.component.scss"]
|
|
})
|
|
export class GcPageComponent implements OnInit {
|
|
inProgress: boolean = true;
|
|
constructor(private session: SessionService) {}
|
|
|
|
ngOnInit() {}
|
|
public get hasAdminRole(): boolean {
|
|
return (
|
|
this.session.getCurrentUser() &&
|
|
this.session.getCurrentUser().has_admin_role
|
|
);
|
|
}
|
|
|
|
getGcStatus(status: boolean) {
|
|
this.inProgress = status;
|
|
}
|
|
}
|