1
1
< div class ="{{theme}} ">
2
2
< h1 mat-dialog-title > {{'DIALOGS.ADD_MEMBERS.TITLE' | translate}}</ h1 >
3
3
4
- < div *ngIf ="!processing " mat-dialog-content >
4
+ < div mat-dialog-content *ngIf ="!processing ">
5
5
< mat-form-field class ="mr-2 search-field adjust-width ">
6
6
< input
7
7
matInput
@@ -16,40 +16,40 @@ <h1 mat-dialog-title>{{'DIALOGS.ADD_MEMBERS.TITLE' | translate}}</h1>
16
16
</ mat-form-field >
17
17
18
18
< button
19
- (click) =" onSearchByString() "
19
+ mat-flat-button
20
20
class ="ml-auto "
21
21
color ="accent "
22
22
data-cy ="search-button "
23
23
[disabled] ="loading "
24
- mat-flat-button >
24
+ (click) =" onSearchByString() " >
25
25
{{'DIALOGS.ADD_MEMBERS.SEARCH' | translate}}
26
26
</ button >
27
27
28
28
< div class ="no-bounce-scrollbar ">
29
29
< mat-spinner *ngIf ="loading " class ="mr-auto ml-auto "> </ mat-spinner >
30
30
</ div >
31
- < div *ngIf ="!!members && !loading " class =" mt-3 ">
31
+ < div class =" mt-3 " *ngIf ="!!members && !loading ">
32
32
< app-members-candidates-list
33
33
#list
34
34
[group] ="data.group "
35
35
[tableId] ="tableId "
36
- *ngIf ="firstSearchDone "
37
- [blockManualAdding] ="manualAddingBlocked "
38
36
[members] ="members "
39
37
[selection] ="selection "
40
- [type] ="data.type ">
38
+ [type] ="data.type "
39
+ [blockManualAdding] ="manualAddingBlocked "
40
+ *ngIf ="firstSearchDone ">
41
41
</ app-members-candidates-list >
42
42
</ div >
43
43
</ div >
44
- < mat-spinner *ngIf =" processing " class ="mr-auto ml-auto "> </ mat-spinner >
45
- < div *ngIf ="!processing " mat-dialog-actions >
46
- < button (click) =" onCancel() " class ="ml-auto " mat-flat-button >
44
+ < mat-spinner class ="mr-auto ml-auto " *ngIf =" processing "> </ mat-spinner >
45
+ < div mat-dialog-actions *ngIf ="!processing ">
46
+ < button mat-flat-button class ="ml-auto " (click) =" onCancel() " >
47
47
{{'DIALOGS.ADD_MEMBERS.CANCEL' | translate}}
48
48
</ button >
49
49
< span
50
50
matTooltip ="{{'DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP' | translate}} "
51
- [matTooltipDisabled] =" selection.selected.length === 0 || this.data.type !== 'group' || (list !== undefined && list.addAuth) "
52
- matTooltipPosition =" above ">
51
+ matTooltipPosition =" above "
52
+ [matTooltipDisabled] =" selection.selected.length === 0 || this.data.type !== 'group' || (list !== undefined && list.addAuth) ">
53
53
< button
54
54
*ngIf ="this.data.type !== 'group' || (this.data.type === 'group' && inviteAuth) "
55
55
[disabled] ="selection.selected.length === 0 || loading "
@@ -68,12 +68,12 @@ <h1 mat-dialog-title>{{'DIALOGS.ADD_MEMBERS.TITLE' | translate}}</h1>
68
68
</ mat-menu >
69
69
</ span >
70
70
< button
71
- (click) =" onAdd() "
71
+ mat-flat-button
72
72
class ="ml-2 "
73
73
color ="accent "
74
74
data-cy ="add-button "
75
- [disabled] =" selection.selected.length === 0 || loading || (this.data.type === 'group' && list !== undefined && !list.addAuth ) "
76
- mat-flat-button >
75
+ (click) =" onAdd( ) "
76
+ [disabled] =" selection.selected.length === 0 || loading || (this.data.type === 'group' && list !== undefined && !list.addAuth) " >
77
77
{{'DIALOGS.ADD_MEMBERS.CREATE' | translate}}
78
78
</ button >
79
79
</ div >
0 commit comments