| <!-- ******************************************************************************** |
| * Copyright (c) 2015-2018 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| ******************************************************************************** --> |
| |
| <div class="extsystem-comp"> |
| <div *ngIf="!environments">{{ 'administration.extsystem.loading' | translate }}</div> |
| |
| <div class="system-selector"> |
| <div *ngIf="!selectedEnvironment" style="display:inline;">{{ 'administration.extsystem.select-system' | translate }}:</div> |
| <div *ngIf="selectedEnvironment" style="display:inline;">{{ 'administration.extsystem.selected-system' | translate }}:</div> |
| <p-dropdown [options]="environments" [(ngModel)]="selectedEnvironment" optionLabel="sourceName" (onChange)="onChangeExtSystem($event)" placeholder="{{ 'administration.extsystem.dropdown-please-select' | translate }}"></p-dropdown> |
| </div> |
| |
| <div *ngIf="selectedEnvironment && extSystems"> |
| |
| <div class="commands"> |
| <button *ngIf="editorMode" type="button" class="btn btn-default pull-right" (click)="onPageBack()"> |
| <span class="fa fa-reply"></span> {{'administration.extsystem.btn-back' | translate }} |
| </button> |
| </div> |
| |
| <mdm-extsystem-editor *ngIf="editorMode" [selectedEnvironment]="selectedEnvironment" [extSystems]="extSystems" (editMode)="onEditModeChange($event)" [selectedES]="selectedExtSystem"></mdm-extsystem-editor> |
| <mdm-extsystem-viewer *ngIf="!editorMode" [selectedEnvironment]="selectedEnvironment" [extSystems]="extSystems" (editMode)="onEditModeChange($event)" (selectedES)="onChangeSelectedExtSystem($event)"></mdm-extsystem-viewer> |
| </div> |
| </div> |