feat(ui): add upload button to control layer

This commit is contained in:
psychedelicious
2024-09-13 13:25:19 +10:00
parent eafd3d1ec7
commit 241fc18d69
3 changed files with 52 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
import type { CanvasEntityIdentifier } from 'features/controlLayers/store/types';
import type { components, paths } from 'services/api/schema';
import type { O } from 'ts-toolbelt';
@@ -219,10 +220,16 @@ type AddToBatchAction = {
type: 'ADD_TO_BATCH';
};
type ReplaceLayerWithImagePostUploadAction = {
type: 'REPLACE_LAYER_WITH_IMAGE';
entityIdentifier: CanvasEntityIdentifier<'control_layer' | 'raster_layer'>;
};
export type PostUploadAction =
| NodesAction
| ToastAction
| AddToBatchAction
| IPALayerImagePostUploadAction
| RGIPAdapterImagePostUploadAction
| UpscaleInitialImageAction;
| UpscaleInitialImageAction
| ReplaceLayerWithImagePostUploadAction;