Skip to content

Commit fadc5fd

Browse files
committed
fix: uX improvements regarding transition to Angular 15
1 parent 22586d4 commit fadc5fd

File tree

11 files changed

+18
-22
lines changed

11 files changed

+18
-22
lines changed

apps/admin-gui/src/_styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ table .mdc-text-field {
16281628
margin-top: 0 !important;
16291629
}
16301630
table .mat-mdc-form-field-infix {
1631-
height: 35px !important;
1631+
min-height: 35px !important;
16321632
padding-top: 7px !important;
16331633
padding-bottom: 0 !important;
16341634
}

apps/admin-gui/src/app/facilities/pages/facility-detail-page/facility-resources/facility-resources.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class FacilityResourcesComponent implements OnInit, AfterViewInit {
5858
this.setAuthRights();
5959
this.servicesManager.getAssignedServices(this.facility.id).subscribe((services) => {
6060
this.services = [this.emptyService].concat(services);
61+
this.refreshTable();
6162
});
6263
this.loadResourcesForFacility();
6364
}

apps/admin-gui/src/app/shared/components/dialogs/edit-member-sponsors-dialog/edit-member-sponsors-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1 mat-dialog-title>{{'DIALOGS.EDIT_MEMBER_SPONSORS.TITLE' | translate}}</h1>
2222
<th *matHeaderCellDef mat-header-cell>
2323
{{'DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION' | translate}}
2424
</th>
25-
<td *matCellDef="let sponsor" mat-cell>
25+
<td *matCellDef="let sponsor" class="align-elements" mat-cell>
2626
<span>{{parseDate(sponsor.validityTo)}}</span>
2727
<button
2828
*ngIf="isExpirationAuthorized(sponsor)"

apps/admin-gui/src/app/shared/components/resources-tags-list/resources-tags-list.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454
{{tag.tagName}}
5555
</div>
5656
<div *ngIf="isChanging.isSelected(tag)">
57-
<mat-form-field>
58-
<mat-label>{{'VO_DETAIL.RESOURCES.TAGS.CHANGE_TAG_NAME' | translate}}</mat-label>
59-
<input [(ngModel)]="tag.tagName" matInput />
57+
<mat-form-field subscriptSizing="dynamic">
58+
<input
59+
[(ngModel)]="tag.tagName"
60+
matInput
61+
placeholder="{{'VO_DETAIL.RESOURCES.TAGS.CHANGE_TAG_NAME' | translate}}" />
6062
</mat-form-field>
6163
</div>
6264
</td>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
</div>
208208

209209
<div
210-
class="ms-auto"
210+
class="ms-auto mt-2"
211211
[matTooltipDisabled]="expirationAttribute.writable"
212212
[matTooltipPosition]="'above'"
213213
matTooltip="{{'VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT' | translate}}">

apps/admin-gui/src/app/vos/pages/group-detail-page/group-members/group-members.component.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
width: 325px;
33
}
44

5-
.align-elements {
6-
display: flex;
7-
align-items: center;
8-
flex-wrap: wrap;
9-
}
10-
115
.fix-select {
126
margin-top: 8px;
137
}

apps/admin-gui/src/app/vos/pages/vo-detail-page/vo-members/vo-members.component.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
width: 325px;
33
}
44

5-
.align-elements {
6-
display: flex;
7-
align-items: center;
8-
flex-wrap: wrap;
9-
}
10-
115
.fix-select {
126
margin-top: 8px;
137
}

apps/admin-gui/src/assets/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,8 +2084,8 @@
20842084
"TITLE": "Edit sponsors of sponsored member",
20852085
"EXPIRATION": "Sponsorship expiration",
20862086
"TABLE_ID": "Id",
2087-
"TABLE_NAME": "name",
2088-
"TABLE_EXPIRATION": "expiration",
2087+
"TABLE_NAME": "Name",
2088+
"TABLE_EXPIRATION": "Expiration",
20892089
"CANCEL": "Close",
20902090
"SUBMIT": "Submit",
20912091
"REMOVE_SPONSOR_DISABLED": "You are not authorized to remove sponsor",

libs/perun/components/src/lib/attributes-list/attribute-value/attribute-value-list/attribute-value-list.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@
5555
overflow: hidden;
5656
text-overflow: ellipsis;
5757
max-width: 400px;
58-
cursor: default;
5958
}

libs/perun/dialogs/src/lib/change-expiration-dialog/change-expiration-dialog.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
{{'DIALOGS.CHANGE_EXPIRATION.GROUP_RULES'|translate}}
4343
</mat-radio-button>
4444
<mat-radio-button value="never">
45-
{{'DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER'|translate}}
45+
<span class="cursor-pointer">
46+
{{'DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER'|translate}}
47+
</span>
4648
</mat-radio-button>
4749
</mat-radio-group>
4850
<perun-web-apps-alert

libs/perun/dialogs/src/lib/change-expiration-dialog/change-expiration-dialog.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
.bottom-padding {
77
padding-bottom: 20px;
88
}
9+
10+
.cursor-pointer {
11+
cursor: pointer;
12+
}

0 commit comments

Comments
 (0)