mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix missing toast message
This commit is contained in:
parent
1aba369c83
commit
208bf68ba2
@ -16,11 +16,6 @@ import { boardsApi } from 'services/api/endpoints/boards';
|
|||||||
import { startAppListening } from '..';
|
import { startAppListening } from '..';
|
||||||
import { imagesApi } from '../../../../../services/api/endpoints/images';
|
import { imagesApi } from '../../../../../services/api/endpoints/images';
|
||||||
|
|
||||||
const DEFAULT_UPLOADED_TOAST: UseToastOptions = {
|
|
||||||
title: t('toast.imageUploaded'),
|
|
||||||
status: 'success',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const addImageUploadedFulfilledListener = () => {
|
export const addImageUploadedFulfilledListener = () => {
|
||||||
startAppListening({
|
startAppListening({
|
||||||
matcher: imagesApi.endpoints.uploadImage.matchFulfilled,
|
matcher: imagesApi.endpoints.uploadImage.matchFulfilled,
|
||||||
@ -43,6 +38,11 @@ export const addImageUploadedFulfilledListener = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DEFAULT_UPLOADED_TOAST: UseToastOptions = {
|
||||||
|
title: t('toast.imageUploaded'),
|
||||||
|
status: 'success',
|
||||||
|
};
|
||||||
|
|
||||||
// default action - just upload and alert user
|
// default action - just upload and alert user
|
||||||
if (postUploadAction?.type === 'TOAST') {
|
if (postUploadAction?.type === 'TOAST') {
|
||||||
const { toastOptions } = postUploadAction;
|
const { toastOptions } = postUploadAction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user