create-dictionary-modal.token.ts

This commit is contained in:
Niels Lyngsø
2023-03-23 21:45:30 +01:00
parent 22386935c1
commit 1cee94db6d
4 changed files with 9 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
import { Observable } from 'rxjs';
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
// TODO: add interface for data
// PropertyTypeViewModelBaseModel
export interface UmbCreateDictionaryModalData {
unique: string | null;
parentName?: Observable<string | undefined>;
}
export interface UmbCreateDictionaryModalResult {
name?: string;
}
export const UMB_CREATE_DICTIONARY_MODAL = new UmbModalToken<
UmbCreateDictionaryModalData,
UmbCreateDictionaryModalResult
>('Umb.Modal.CreateDictionary', {
type: 'sidebar',
size: 'small',
});