* feat: add sending user requests from UI * fix(web): view controller manager user client references
17 lines
392 B
TypeScript
17 lines
392 B
TypeScript
import { addToast, dismissToast, ToastType } from '@standardnotes/toast'
|
|
|
|
import { ToastServiceInterface } from './ToastServiceInterface'
|
|
|
|
export class ToastService implements ToastServiceInterface {
|
|
hideToast(toastId: string): void {
|
|
dismissToast(toastId)
|
|
}
|
|
|
|
showToast(type: ToastType, message: string): string {
|
|
return addToast({
|
|
type: type,
|
|
message,
|
|
})
|
|
}
|
|
}
|