Proff of concept for navigating to edit path when created
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user