added an option to add password from the connection properties (fixes #637)

This commit is contained in:
Eugene Pankov committed 2019-06-18 23:48:20 +02:00
1 parent 77058c0472
commit db3b8cc718
6 files changed
+59 -29

No files matched your search

@@ -1,8 +1,7 @@
.modal-body
ngb-tabset(type='pills', [activeId]='basic')
ngb-tab(id='basic')
ng-template(ngbTabTitle)
| Basic Setting
ng-template(ngbTabTitle) General
ng-template(ngbTabContent)
.form-group
label Name
@@ -42,12 +41,22 @@
[(ngModel)]='connection.user',
)
.alert.alert-info.d-flex.bg-transparent.text-white.align-items-center(*ngIf='hasSavedPassword')
.mr-auto There is a saved password for this connection
button.btn.btn-danger.ml-4((click)='clearSavedPassword()') Forget
.form-line
.header
.title Password
.description(*ngIf='!hasSavedPassword') Save a password in the keychain
.description(*ngIf='hasSavedPassword') There is a saved password for this connection
button.btn.btn-outline-success.ml-4(*ngIf='!hasSavedPassword', (click)='setPassword()')
i.fas.fa-key
span Set password
button.btn.btn-danger.ml-4(*ngIf='hasSavedPassword', (click)='clearSavedPassword()')
i.fas.fa-trash-alt
span Forget
.form-group
label Private key
.form-line
.header
.title Private key
.description Path to the private key file
.input-group
input.form-control(
type='text',
@@ -59,8 +68,7 @@
i.fas.fa-folder-open
ngb-tab(id='advanced')
ng-template(ngbTabTitle)
| Advanced Setting
ng-template(ngbTabTitle) Advanced
ng-template(ngbTabContent)
.form-group
label Keep Alive Interval (Milliseconds)
@@ -108,8 +116,7 @@
ngb-tab(id='scripts')
ng-template(ngbTabTitle)
| Login Scripts
ng-template(ngbTabTitle) Login scripts
ng-template(ngbTabContent)
table
tr
@@ -130,11 +137,11 @@
[(ngModel)]='script.send'
)
td
toggle(
checkbox(
[(ngModel)]='script.isRegex',
)
td
toggle(
checkbox(
[(ngModel)]='script.optional',
)
td
@@ -159,19 +166,17 @@
[(ngModel)]='newScript.send'
)
td
toggle(
checkbox(
[(ngModel)]='newScript.isRegex',
)
td
toggle(
checkbox(
[(ngModel)]='newScript.optional',
)
td
.input-group.flex-nowrap
button.btn.btn-outline-info.ml-0((click)='addScript()')
i.fas.fa-check
button.btn.btn-outline-danger.ml-0((click)='clearScript()')
i.fas.fa-trash
.modal-footer
button.btn.btn-outline-primary((click)='save()') Save