chore: copy and style improvements

This commit is contained in:
Mo
2023-05-03 08:41:25 -05:00
parent 4aad554c1a
commit 44e91b5ede
24 changed files with 47 additions and 61 deletions

View File

@@ -23,6 +23,9 @@ import { AccountMenuPane } from '@/Components/AccountMenu/AccountMenuPane'
import { EventObserverInterface } from './EventObserverInterface'
import { WebApplication } from '@/Application/Application'
export const JoinWorkspaceSuccessString =
'Successfully joined a shared subscription. You may have to sign out and back in for changes to take effect.'
export class ApplicationEventObserver implements EventObserverInterface {
constructor(
private application: WebApplication,
@@ -129,7 +132,7 @@ export class ApplicationEventObserver implements EventObserverInterface {
this.toastService.hideToast(processingToastId)
const toastType = acceptResult.success ? ToastType.Success : ToastType.Error
const toastMessage = acceptResult.success ? 'Successfully joined a shared subscription' : acceptResult.message
const toastMessage = acceptResult.success ? JoinWorkspaceSuccessString : acceptResult.message
this.toastService.showToast(toastType, toastMessage)