From 6a9aa24e2df1ab838dc42951eb32944dc4b5d2b2 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Thu, 19 Jan 2023 12:57:51 +0100 Subject: [PATCH] added new creationContext type --- public/locales/de-DE/translation.json | 3 +++ public/locales/en-US/translation.json | 3 +++ src/route-widgets/AliasDetailRoute/AliasNotesForm.tsx | 1 + src/server-types.ts | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/public/locales/de-DE/translation.json b/public/locales/de-DE/translation.json index 76724e3..583cbb8 100644 --- a/public/locales/de-DE/translation.json +++ b/public/locales/de-DE/translation.json @@ -172,6 +172,9 @@ }, "extension": { "label": "In der Erweiterung erstellt" + }, + "extension-inline": { + "label": "Mit der Erweiterung erstellt" } }, "createdOn": { diff --git a/public/locales/en-US/translation.json b/public/locales/en-US/translation.json index bcb6f13..8cffdb8 100644 --- a/public/locales/en-US/translation.json +++ b/public/locales/en-US/translation.json @@ -180,6 +180,9 @@ }, "extension": { "label": "Created in the extension" + }, + "extension-inline": { + "label": "Created using the extension" } }, "createdOn": { diff --git a/src/route-widgets/AliasDetailRoute/AliasNotesForm.tsx b/src/route-widgets/AliasDetailRoute/AliasNotesForm.tsx index 466801b..94680e3 100644 --- a/src/route-widgets/AliasDetailRoute/AliasNotesForm.tsx +++ b/src/route-widgets/AliasDetailRoute/AliasNotesForm.tsx @@ -58,6 +58,7 @@ interface Form { const CREATION_CONTEXT_ICON_MAP: Record = { web: , extension: , + "extension-inline": , } const IMAGE_WIDTH = 20 diff --git a/src/server-types.ts b/src/server-types.ts index 2d522e1..9669ec1 100644 --- a/src/server-types.ts +++ b/src/server-types.ts @@ -105,7 +105,7 @@ export interface AliasNote { data: { createdAt: Date | null createdOn: string | null - creationContext: "extension" | "web" + creationContext: "extension" | "extension-inline" | "web" personalNotes: string websites: Array<{ url: string