forked from Eugeny/tabby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editProfileModal.component.pug
93 lines (82 loc) · 3.41 KB
/
editProfileModal.component.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.modal-header(*ngIf='!defaultsMode')
h3.m-0 {{profile.name}}
.modal-header(*ngIf='defaultsMode')
h3.m-0(
translate='Defaults for {type}',
[translateParams]='{type: profileProvider.name}'
)
.modal-body
.row
.col-12.col-lg-4
.mb-3(*ngIf='!defaultsMode')
label(translate) Name
input.form-control(
type='text',
autofocus,
[(ngModel)]='profile.name',
)
.mb-3(*ngIf='!defaultsMode')
label(translate) Group
input.form-control(
type='text',
alwaysVisibleTypeahead,
placeholder='Ungrouped',
[(ngModel)]='profile.group',
[ngbTypeahead]='groupTypeahead',
)
.mb-3(*ngIf='!defaultsMode')
label(translate) Icon
.input-group
input.form-control(
type='text',
alwaysVisibleTypeahead,
[(ngModel)]='profile.icon',
[ngbTypeahead]='iconSearch',
[resultTemplate]='rt'
)
.input-group-text
profile-icon(
[icon]='profile.icon',
[color]='profile.color'
)
ng-template(#rt,let-r='result',let-t='term')
i([class]='"fa-fw " + r')
ngb-highlight.ms-2([result]='r', [term]='t')
.form-line
.header
.title(translate) Color
input.form-control.w-50(
type='text',
[(ngModel)]='profile.color',
placeholder='#000000',
[ngbTypeahead]='colorsAutocomplete',
[resultFormatter]='colorsFormatter'
)
.form-line
.header
.title(translate) Disable dynamic tab title
.description(translate) Connection name will be used instead
toggle([(ngModel)]='profile.disableDynamicTitle')
.form-line
.header
.title(translate) When a session ends
.description(*ngIf='profile.behaviorOnSessionEnd == "auto"', translate) Only close the tab when session is explicitly terminated
select.form-control(
[(ngModel)]='profile.behaviorOnSessionEnd',
)
option(ngValue='auto', translate) Auto
option(ngValue='keep', translate) Keep
option(*ngIf='isConnectable()', ngValue='reconnect', translate) Reconnect
option(ngValue='close', translate) Close
.form-line(*ngIf='isConnectable()')
.header
.title(translate) Clear terminal after connection
toggle(
[(ngModel)]='profile.clearServiceMessagesOnConnect',
)
.mb-4
.col-12.col-lg-8(*ngIf='this.profileProvider.settingsComponent')
ng-template(#placeholder)
.modal-footer
button.btn.btn-primary((click)='save()', translate) Save
button.btn.btn-danger((click)='cancel()', translate) Cancel