feat: add sending user requests from UI (#1927)
* feat: add sending user requests from UI * fix(web): view controller manager user client references
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { addToast, ToastType } from '@standardnotes/toast'
|
||||
import { addToast, dismissToast, ToastType } from '@standardnotes/toast'
|
||||
|
||||
import { ToastServiceInterface } from './ToastServiceInterface'
|
||||
|
||||
export class ToastService implements ToastServiceInterface {
|
||||
showToast(type: ToastType, message: string): void {
|
||||
addToast({
|
||||
hideToast(toastId: string): void {
|
||||
dismissToast(toastId)
|
||||
}
|
||||
|
||||
showToast(type: ToastType, message: string): string {
|
||||
return addToast({
|
||||
type: type,
|
||||
message,
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ToastType } from '@standardnotes/toast'
|
||||
|
||||
export interface ToastServiceInterface {
|
||||
showToast(type: ToastType, message: string): void
|
||||
showToast(type: ToastType, message: string): string
|
||||
hideToast(toastId: string): void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user