From 476bbb535d9dd737ea6e52e83ded9c1a639c4693 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 2 Feb 2025 09:59:22 +0100 Subject: [PATCH] Refactor snack bars --- .../src/app/components/access-table/access-table.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/access-table/access-table.component.ts b/apps/client/src/app/components/access-table/access-table.component.ts index 32ae7bfef..34c5fbda2 100644 --- a/apps/client/src/app/components/access-table/access-table.component.ts +++ b/apps/client/src/app/components/access-table/access-table.component.ts @@ -14,6 +14,7 @@ import { } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { MatTableDataSource } from '@angular/material/table'; +import ms from 'ms'; @Component({ selector: 'gf-access-table', @@ -64,7 +65,7 @@ export class AccessTableComponent implements OnChanges { '✅ ' + $localize`Link has been copied to the clipboard`, undefined, { - duration: 3000 + duration: ms('3 seconds') } ); }