New requirement in VIM account creation
- Added credentials field to uplaod files
- Will convert the file content to base64 & send it in config
parameter with key credentials_base64
Change-Id: Ib891515377ea08b19de25d8e542113e3ded73724
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.html b/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.html
index 7f719a2..f41a0df 100644
--- a/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.html
+++ b/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.html
@@ -134,6 +134,16 @@
</div>
<small class="text-info">{{'UPLOADCONFIGLABEL' | translate}}</small>
</div>
+ <div class="col-sm-3">
+ <label>{{'PAGE.K8S.CREDENTIALS' | translate}}</label>
+ </div>
+ <div class="col-sm-3 form-group">
+ <div class="custom-file">
+ <input [disabled]="!selectedVimType" type="file" #fileInputcreds class="fileupload custom-file-input"
+ (change)="onFileSelected($event)" id="customcredsFile">
+ </div>
+ <small class="text-info">{{'UPLOADCREDSLABEL' | translate}}</small>
+ </div>
</div>
<div class="row" [hidden]="!selectedVimType">
<div class="d-grid col-12">