Skip to content

Commit 4b5c2c9

Browse files
committed
fix(admin): unify color of mat-slide-toggles
* The color attribute was removed from mat-slide-toggle tags so the default accent color is used across all GUI.
1 parent 494fcce commit 4b5c2c9

File tree

7 files changed

+4
-19
lines changed

7 files changed

+4
-19
lines changed

apps/admin-gui/src/app/shared/components/settings-toggle-item/settings-toggle-item.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
class="setting-item clickable">
77
{{title}}
88
</label>
9-
<mat-slide-toggle #toggle [(ngModel)]="modelValue" class="ms-4" color="primary">
10-
</mat-slide-toggle>
9+
<mat-slide-toggle #toggle [(ngModel)]="modelValue" class="ms-4"></mat-slide-toggle>
1110
</div>
1211
<div [@openClose]="toggle.checked ? 'open' : 'closed'" class="ms-1">
1312
<ng-content></ng-content>

apps/admin-gui/src/app/vos/components/expiration-settings/expiration-settings.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
class="settings-header">
77
{{'VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE' | translate}}
88
</h1>
9-
<mat-slide-toggle
10-
#mainToggle
11-
class="ms-4"
12-
[(ngModel)]="currentConfiguration.enabled"
13-
color="primary">
9+
<mat-slide-toggle #mainToggle class="ms-4" [(ngModel)]="currentConfiguration.enabled">
1410
</mat-slide-toggle>
1511
</div>
1612

apps/admin-gui/src/app/vos/pages/group-detail-page/group-settings/group-settings-application-form/group-settings-application-form.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ <h1 class="page-subtitle">
3535
(change)="updateAutoRegistration()"
3636
[disabled]="!changeAutoRegistration"
3737
[ngModel]="autoRegistrationEnabled"
38-
#autoRegToggle
39-
color="primary">
38+
#autoRegToggle>
4039
{{'GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED' | translate}}
4140
</mat-slide-toggle>
4241
</div>

apps/admin-gui/src/app/vos/pages/group-detail-page/group-subgroups/group-subgroups.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ <h1 class="page-subtitle">{{'GROUP_DETAIL.SUBGROUPS.TITLE' | translate}}</h1>
3737
(change)="selected.clear()"
3838
[(ngModel)]="showGroupList"
3939
class="me-1"
40-
color="primary"
4140
labelPosition="before"></mat-slide-toggle>
4241
<label class="slide-label" (click)="labelToggle()">
4342
{{'GROUP_DETAIL.SUBGROUPS.LIST_VIEW' | translate}}

apps/admin-gui/src/app/vos/pages/vo-detail-page/vo-groups/vo-groups.component.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ <h1 class="page-subtitle">{{'VO_DETAIL.GROUPS.TITLE' | translate}}</h1>
3131
<label class="slide-label" (click)="labelToggle()"
3232
>{{'VO_DETAIL.GROUPS.TREE_VIEW' | translate}}
3333
</label>
34-
<mat-slide-toggle
35-
#toggle
36-
(change)="removeAllGroups()"
37-
[(ngModel)]="showGroupList"
38-
class="me-1"
39-
color="primary">
34+
<mat-slide-toggle #toggle (change)="removeAllGroups()" [(ngModel)]="showGroupList" class="me-1">
4035
</mat-slide-toggle>
4136
<label class="slide-label" (click)="labelToggle()"
4237
>{{'VO_DETAIL.GROUPS.LIST_VIEW' | translate}}

libs/perun/components/src/lib/attribute-critical-operations-toggles/attribute-critical-operations-toggles.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<mat-slide-toggle
22
class="toggle-font"
3-
color="accent"
43
labelPosition="before"
54
data-cy="toggle-read-critical"
65
[(ngModel)]="readOperation"
@@ -10,7 +9,6 @@
109
<br />
1110
<mat-slide-toggle
1211
class="toggle-font"
13-
color="accent"
1412
labelPosition="before"
1513
[(ngModel)]="writeOperation"
1614
(toggleChange)="writeOperationChanged.emit(!writeOperation)">

libs/perun/components/src/lib/attribute-unique-toggle/attribute-unique-toggle.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
matTooltipPosition="above"
66
matTooltip="{{'SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP'| translate}}">
77
<mat-slide-toggle
8-
color="accent"
98
labelPosition="before"
109
[(ngModel)]="attDef.unique"
1110
[disabled]="disabled.disable">

0 commit comments

Comments
 (0)