settings layout fixes

This commit is contained in:
Eugene Pankov 2018-04-24 16:07:42 +02:00
parent 8432e3ef66
commit 4b30dfef58

View File

@ -242,50 +242,46 @@ h3.mb-3 Appearance
h3.mt-3.mb-3 Shell h3.mt-3.mb-3 Shell
.row .d-flex
.col-md-6 .form-group.mr-3
.d-flex label Shell
.form-group.mr-3 select.form-control(
label Shell [(ngModel)]='config.store.terminal.shell',
select.form-control( (ngModelChange)='config.save()',
[(ngModel)]='config.store.terminal.shell', )
(ngModelChange)='config.save()', option(
) *ngFor='let shell of shells',
option( [ngValue]='shell.id'
*ngFor='let shell of shells', ) {{shell.name}}
[ngValue]='shell.id'
) {{shell.name}}
.form-group(*ngIf='persistenceProviders.length > 0') .form-group.mr-3(*ngIf='persistenceProviders.length > 0')
label Session persistence label Session persistence
select.form-control( select.form-control(
[(ngModel)]='config.store.terminal.persistence', [(ngModel)]='config.store.terminal.persistence',
(ngModelChange)='config.save()', (ngModelChange)='config.save()',
) )
option([ngValue]='null') Off option([ngValue]='null') Off
option( option(
*ngFor='let provider of persistenceProviders', *ngFor='let provider of persistenceProviders',
[ngValue]='provider.id' [ngValue]='provider.id'
) {{provider.displayName}} ) {{provider.displayName}}
.form-group(*ngIf='config.store.terminal.shell == "custom"')
label Custom shell
input.form-control(
type='text',
[(ngModel)]='config.store.terminal.customShell',
(ngModelChange)='config.save()',
)
.col-md-6 .form-group
.form-group label Working directory
label Working directory input.form-control(
input.form-control( type='text',
type='text', placeholder='Home directory',
placeholder='Home directory', [(ngModel)]='config.store.terminal.workingDirectory',
[(ngModel)]='config.store.terminal.workingDirectory', (ngModelChange)='config.save()',
(ngModelChange)='config.save()', )
)
.form-group(*ngIf='config.store.terminal.shell == "custom"')
label Custom shell
input.form-control(
type='text',
[(ngModel)]='config.store.terminal.customShell',
(ngModelChange)='config.save()',
)
h3.mt-3.mb-3 Behaviour h3.mt-3.mb-3 Behaviour
@ -321,7 +317,7 @@ h3.mt-3.mb-3 Behaviour
| Audible | Audible
.form-group .form-group
label Right click behaviour label Right click
br br
.btn-group( .btn-group(
[(ngModel)]='config.store.terminal.rightClick', [(ngModel)]='config.store.terminal.rightClick',