How to use the @harbor/ui.USERSTATICPERMISSION.HELM_CHART function in @harbor/ui

To help you get started, we’ve selected a few @harbor/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github goharbor / harbor / src / portal / src / app / project / helm-chart / list-charts-detail / helm-chart.component.ts View on Github external
getHelmPermissionRule(projectId: number): void {
    let hasUploadHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.UPLOAD);
    let hasDownloadHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.DOWNLOAD);
    let hasDeleteHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.DELETE);
    forkJoin(hasUploadHelmChartsPermission, hasDownloadHelmChartsPermission, hasDeleteHelmChartsPermission).subscribe(permissions => {
      this.hasUploadHelmChartsPermission = permissions[0] as boolean;
      this.hasDownloadHelmChartsPermission = permissions[1] as boolean;
      this.hasDeleteHelmChartsPermission = permissions[2] as boolean;
    }, error => this.errorHandler.error(error));
  }
  updateFilterValue(value: string) {
github goharbor / harbor / src / portal / src / app / project / helm-chart / list-charts-detail / helm-chart.component.ts View on Github external
getHelmPermissionRule(projectId: number): void {
    let hasUploadHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.UPLOAD);
    let hasDownloadHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.DOWNLOAD);
    let hasDeleteHelmChartsPermission = this.userPermissionService.getPermission(projectId,
      USERSTATICPERMISSION.HELM_CHART.KEY, USERSTATICPERMISSION.HELM_CHART.VALUE.DELETE);
    forkJoin(hasUploadHelmChartsPermission, hasDownloadHelmChartsPermission, hasDeleteHelmChartsPermission).subscribe(permissions => {
      this.hasUploadHelmChartsPermission = permissions[0] as boolean;
      this.hasDownloadHelmChartsPermission = permissions[1] as boolean;
      this.hasDeleteHelmChartsPermission = permissions[2] as boolean;
    }, error => this.errorHandler.error(error));
  }
  updateFilterValue(value: string) {