Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:host {
// Material sizes dialog text via this token (0.875rem); use the app's standard 1rem instead.
--mat-dialog-supporting-text-size: 1rem;
}

.history-header {
display: flex;
align-items: flex-start;
Expand All @@ -17,15 +22,15 @@

.history-intro {
margin: 0;
font-size: 0.82rem;
// Sits inside mat-dialog-title, which would cascade the 21px headline size.
font-size: 1rem;
font-weight: 400;
color: var(--text-tertiary, #6c757d);
line-height: 1.35;
}

.history-hint {
margin: 0 0 12px;
font-size: 0.8rem;
color: var(--text-tertiary, #6c757d);
line-height: 1.4;
}
Expand All @@ -46,7 +51,6 @@

.history-day-heading {
margin: 0 0 10px;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
Expand All @@ -62,7 +66,7 @@

.history-event {
display: grid;
grid-template-columns: 3.35rem minmax(0, 1fr);
grid-template-columns: max-content minmax(0, 1fr);
gap: 6px 12px;
Comment on lines 67 to 70
align-items: start;
margin-bottom: 14px;
Expand All @@ -73,7 +77,6 @@
}

.history-time {
font-size: 0.82rem;
font-variant-numeric: tabular-nums;
font-weight: 500;
color: var(--text-tertiary, #6c757d);
Expand All @@ -85,7 +88,6 @@

.history-action {
margin: 0 0 4px;
font-size: 0.88rem;
font-weight: 500;
line-height: 1.4;
}
Expand All @@ -97,7 +99,6 @@

.history-actor {
margin: 0;
font-size: 0.8rem;
font-weight: 400;
color: var(--text-tertiary, #6c757d);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
{{ datePipe.transform(data.planningPrDayModels.date, 'dd.MM.yyyy') }}
<small class="microting-uid" matTooltip="Id">({{ data.planningPrDayModels.id }})</small></div>
<button
*ngIf="selectAuthIsAdmin$ | async"

mat-icon-button
(click)="openVersionHistory()"
matTooltip="{{'View history' | translate}}">
Comment on lines 6 to 9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {MtxGridColumn} from '@ng-matero/extensions/grid';
import {TimePlanningPnPlanningsService, TimePlanningPnGpsCoordinatesService, TimePlanningPnPictureSnapshotsService} from '../../../../services';
import {VersionHistoryModalComponent} from '../version-history-modal/version-history-modal.component';
import {Store} from '@ngrx/store';
import {selectAuthIsAdmin, selectCurrentUserIsFirstUser} from 'src/app/state';
import {selectCurrentUserIsFirstUser} from 'src/app/state';
import validator from 'validator';
import {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser';
import {TemplateFilesService} from 'src/app/common/services';
Expand Down Expand Up @@ -54,7 +54,6 @@ export class WorkdayEntityDialogComponent implements OnInit, OnDestroy {
private originalDialogHeight: string = 'auto';

public selectCurrentUserIsFirstUser$ = this.store.select(selectCurrentUserIsFirstUser);
protected selectAuthIsAdmin$ = this.store.select(selectAuthIsAdmin);

TimePlanningMessagesEnum = TimePlanningMessagesEnum;
enumKeys: string[] = [];
Expand Down
Loading