mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
fix(cloud): MFA toast uses a plain button; toasts no longer take a Copy link source
This commit is contained in:
@@ -77,7 +77,7 @@ export const toast = frame(
|
||||
{
|
||||
key: 'mfa',
|
||||
text: 'Acme Engineering requires MFA from December 2, 2026.',
|
||||
action: { label: 'Set up MFA', primary: true, link: setupUrl, onClick: noop }
|
||||
action: { label: 'Set up MFA', primary: true, onClick: noop }
|
||||
}
|
||||
]
|
||||
}}
|
||||
|
||||
@@ -42,8 +42,8 @@ export function TeamMfaSidebarBanner(): React.JSX.Element | null {
|
||||
action: {
|
||||
label: t('auto.components.teamMfa.setUp', 'Set up MFA'),
|
||||
primary: true,
|
||||
// Opens the account page in the browser, so the chevron offers Copy link.
|
||||
link: toast.setupUrl,
|
||||
// A plain button: toasts no longer carry a Copy link chevron (AUTH-ONLY-COPY-LINK).
|
||||
// The sidebar card and Settings, Account keep the split button.
|
||||
onClick: () => {
|
||||
void window.api.shell.openUrl(toast.setupUrl)
|
||||
hideCloudToast(id)
|
||||
|
||||
Reference in New Issue
Block a user