This is an automated email from the ASF dual-hosted git repository. dgnatyshyn pushed a commit to branch DLAB-1357 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 505c9eadfe63b09a9849f813a1d8377df7372925 Author: Dmytro Gnatyshyn <[email protected]> AuthorDate: Wed Jan 29 14:22:12 2020 +0200 Hided odahu for for AWS, Azure --- .../administration/legion-deployment/legion-deployment.component.ts | 3 +++ .../main/resources/webapp/src/app/shared/navbar/navbar.component.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/legion-deployment/legion-deployment.component.ts b/services/self-service/src/main/resources/webapp/src/app/administration/legion-deployment/legion-deployment.component.ts index 76de123..60c0329 100644 --- a/services/self-service/src/main/resources/webapp/src/app/administration/legion-deployment/legion-deployment.component.ts +++ b/services/self-service/src/main/resources/webapp/src/app/administration/legion-deployment/legion-deployment.component.ts @@ -5,6 +5,7 @@ import {MatDialog} from '@angular/material/dialog'; import {ToastrService} from 'ngx-toastr'; import {CreateLegionClusterComponent} from './create-legion-claster/create-legion-cluster.component'; import {HealthStatusService, LegionDeploymentService} from '../../core/services'; +import { DICTIONARY } from '../../../dictionary/global.dictionary'; export interface OdahuCluster { name: string; @@ -18,6 +19,8 @@ export interface OdahuCluster { styleUrls: ['./legion-deployment.component.scss'] }) export class LegionDeploymentComponent implements OnInit { + readonly PROVIDER = DICTIONARY.cloud_provider; + private legionClastersList: any[]; private subscriptions: Subscription = new Subscription(); private healthStatus; diff --git a/services/self-service/src/main/resources/webapp/src/app/shared/navbar/navbar.component.html b/services/self-service/src/main/resources/webapp/src/app/shared/navbar/navbar.component.html index d344274..92bb252 100644 --- a/services/self-service/src/main/resources/webapp/src/app/shared/navbar/navbar.component.html +++ b/services/self-service/src/main/resources/webapp/src/app/shared/navbar/navbar.component.html @@ -88,7 +88,7 @@ <span *ngIf="isExpanded; else projects">Projects</span> <ng-template #projects><i class="material-icons">dns</i></ng-template> </a> - <a class="sub-nav-item" [style.margin-left.px]="isExpanded ? '30' : '0'" [routerLink]="['/legion-deployment']" + <a *ngIf="PROVIDER === 'gcp'" class="sub-nav-item" [style.margin-left.px]="isExpanded ? '30' : '0'" [routerLink]="['/legion-deployment']" [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}"> <span *ngIf="isExpanded; else legion">Odahu deployment</span> <ng-template #legion><i class="material-icons">get_app</i></ng-template> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
