From f2276227aa1fb201f641b16e3136e10e3b5355b7 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 7 Mar 2023 10:14:14 +0100 Subject: [PATCH] [SM-579] Prevent creating secret without project (#4892) * Change project select to simple dropdown * Handle null --- .../dialog/secret-dialog.component.html | 85 ++++++------------- .../secrets/dialog/secret-dialog.component.ts | 46 ++-------- 2 files changed, 31 insertions(+), 100 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/secrets/dialog/secret-dialog.component.html b/bitwarden_license/bit-web/src/app/secrets-manager/secrets/dialog/secret-dialog.component.html index 03ce1d866a0..19b1866fd4e 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/secrets/dialog/secret-dialog.component.html +++ b/bitwarden_license/bit-web/src/app/secrets-manager/secrets/dialog/secret-dialog.component.html @@ -1,71 +1,38 @@ - -
- + {{ title | i18n }}
- - -
- - {{ "name" | i18n }} - - - - {{ "value" | i18n }} - - -
- - {{ "notes" | i18n }} - + +
+ + {{ "name" | i18n }} + - - - {{ - "secretProjectAssociationDescription" | i18n - }} - - {{ "project" | i18n }} - + + {{ "value" | i18n }} + - {{ "selectProjects" | i18n }} +
+ + {{ "notes" | i18n }} + + - - - - {{ "project" | i18n }} - - - - - - - {{ e.name }} - - - - - - - -
-
+
+ + + {{ "project" | i18n }} + + +