-->
<form [formGroup]="vimNewAccountForm" (ngSubmit)="newVimAccountSubmit()" autocomplete="off">
<div class="row d-flex flex-row justify-content-between">
- <div class="d-flex align-items-center header-style">{{'PAGE.VIMDETAILS.NEWVIMACCOUNT' | translate}} </div>
+ <div *ngIf="vimID;else empty" class="d-flex align-items-center header-style">{{'PAGE.VIMDETAILS.EDITVIMACCOUNT'
+ | translate}} </div>
+ <ng-template #empty>
+ <div class="d-flex align-items-center header-style">{{'PAGE.VIMDETAILS.NEWVIMACCOUNT' | translate}} </div>
+ </ng-template>
</div>
<div class="context-style bg-white p-3">
<div class="row form-group content-style">
<div id="configurationparameters" class="row collapse mt-3" [ngbCollapse]="isCollapsed">
<div class="col-sm-12">
<div class="ngx-codemirror new-vim" [hidden]="!selectedVimType">
- <div class="form-group">
- <button type="button" class="btn btn-warning btn-sm mr-3" (click)="loadSampleConfig()">
+ <div class="form-group" *ngIf="!vimID">
+ <button type="button" class="btn btn-warning btn-sm mr-3" (click)="checkData()">
<i class="fa fa-clone" aria-hidden="true"></i>
{{'PAGE.VIMDETAILS.LOADSAMPLECONFIG' | translate}}</button>
<button type="button" class="btn btn-danger btn-sm" (click)="clearConfig()">
<i class="fa fa-times-circle" aria-hidden="true"></i>
{{'PAGE.VIMDETAILS.CLEARCONFIG' | translate}}</button>
</div>
- <ngx-codemirror [options]="options" [ngModel]="defaults[mode]" [autoFocus]="true"
+ <ngx-codemirror *ngIf="check" [options]="options" [ngModel]="defaults[mode]" [autoFocus]="false"
(ngModelChange)="handleChange($event)" [ngModelOptions]="{standalone: true}">
</ngx-codemirror>
</div>
<div class="modal-footer border-0">
<button type="button" (click)="onVimAccountBack()"
class="btn btn-danger">{{'PAGE.VIMDETAILS.BACKTOVIMACCOUNTS' | translate}}</button>
- <button type="submit" class="btn btn-primary">{{'CREATE' | translate}}</button>
+ <button *ngIf="!vimID" type="submit" class="btn btn-primary">{{'CREATE' | translate}}</button>
+ <button *ngIf="vimID" type="submit" class="btn btn-primary">{{'UPDATE' | translate}}</button>
</div>
</div>
</form>