mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
PM-21605 Remove Login text from error notification (#14767)
This commit is contained in:
@@ -48,6 +48,7 @@ export function NotificationConfirmationBody({
|
|||||||
? NotificationConfirmationMessage({
|
? NotificationConfirmationMessage({
|
||||||
buttonAria,
|
buttonAria,
|
||||||
buttonText,
|
buttonText,
|
||||||
|
error,
|
||||||
itemName,
|
itemName,
|
||||||
message: confirmationMessage,
|
message: confirmationMessage,
|
||||||
messageDetails,
|
messageDetails,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { spacing, themes, typography } from "../../constants/styles";
|
|||||||
export type NotificationConfirmationMessageProps = {
|
export type NotificationConfirmationMessageProps = {
|
||||||
buttonAria?: string;
|
buttonAria?: string;
|
||||||
buttonText?: string;
|
buttonText?: string;
|
||||||
|
error?: string;
|
||||||
itemName?: string;
|
itemName?: string;
|
||||||
message?: string;
|
message?: string;
|
||||||
messageDetails?: string;
|
messageDetails?: string;
|
||||||
@@ -18,6 +19,7 @@ export type NotificationConfirmationMessageProps = {
|
|||||||
export function NotificationConfirmationMessage({
|
export function NotificationConfirmationMessage({
|
||||||
buttonAria,
|
buttonAria,
|
||||||
buttonText,
|
buttonText,
|
||||||
|
error,
|
||||||
itemName,
|
itemName,
|
||||||
message,
|
message,
|
||||||
messageDetails,
|
messageDetails,
|
||||||
@@ -29,7 +31,11 @@ export function NotificationConfirmationMessage({
|
|||||||
${message || buttonText
|
${message || buttonText
|
||||||
? html`
|
? html`
|
||||||
<div class=${singleLineWrapperStyles}>
|
<div class=${singleLineWrapperStyles}>
|
||||||
<span class=${itemNameStyles(theme)} title=${itemName}> ${itemName} </span>
|
${!error && itemName
|
||||||
|
? html`
|
||||||
|
<span class=${itemNameStyles(theme)} title=${itemName}> ${itemName} </span>
|
||||||
|
`
|
||||||
|
: nothing}
|
||||||
<span
|
<span
|
||||||
title=${message || buttonText}
|
title=${message || buttonText}
|
||||||
class=${notificationConfirmationMessageStyles(theme)}
|
class=${notificationConfirmationMessageStyles(theme)}
|
||||||
|
|||||||
Reference in New Issue
Block a user