Skip to content

Commit 695ba22

Browse files
committed
fix: add modified by tooltip to time on metadata blocks
1 parent 86c5a09 commit 695ba22

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/ui/metadata-display.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { CommonModule } from '@angular/common';
12
import {
23
Component,
34
computed,
@@ -41,6 +42,7 @@ import { MetadataHistoryModalComponent } from '../overlays/metadata-history-moda
4142
import { SettingsFieldComponent } from './custom-fields/settings-field.component';
4243
import { IconComponent } from './icon.component';
4344
import { DateFromPipe } from './pipes/date-from.pipe';
45+
import { UserPipe } from './pipes/user.pipe';
4446
import { TranslatePipe } from './translate.pipe';
4547

4648
interface Metadata extends PlaceMetadata {
@@ -100,6 +102,10 @@ function replaceDescTag(inputString, newContent) {
100102
<div class="flex-1"></div>
101103
<div
102104
class="border-base-300 rounded-sm border px-2 py-1 font-mono text-[0.625rem] whitespace-nowrap"
105+
[matTooltip]="
106+
(item.modified_by_id | user | async)?.name
107+
"
108+
matTooltipPosition="left"
103109
>
104110
{{ item.updated_at | dateFrom }}
105111
</div>
@@ -197,6 +203,7 @@ function replaceDescTag(inputString, newContent) {
197203
`,
198204
],
199205
imports: [
206+
CommonModule,
200207
MatProgressSpinnerModule,
201208
TranslatePipe,
202209
IconComponent,
@@ -207,6 +214,7 @@ function replaceDescTag(inputString, newContent) {
207214
MatFormFieldModule,
208215
MatInputModule,
209216
DateFromPipe,
217+
UserPipe,
210218
],
211219
})
212220
export class MetadataDisplayComponent

0 commit comments

Comments
 (0)