Proff of concept for navigating to edit path when created

This commit is contained in:
Niels Lyngsø
2023-04-04 15:48:36 +02:00
parent 4a83bfa41d
commit 42f901aa41
11 changed files with 93 additions and 65 deletions

View File

@@ -4,12 +4,13 @@ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
export interface UmbWorkspaceContextInterface<DataType = unknown> {
host: UmbControllerHostElement;
repository: any; // TODO: add type
isNew: Observable<boolean>;
getIsNew(): boolean;
isNew: Observable<boolean | undefined>;
getIsNew(): boolean | undefined;
setIsNew(value: boolean): void;
// TODO: should we consider another name than entity type. File system files are not entities but still have this type.
getEntityType(): string;
getData(): DataType | undefined;
save(): Promise<void>;
destroy(): void;
// TODO: temp solution to bubble validation errors to the UI
setValidationErrors?(errorMap: any): void;