create-dictionary-modal.token.ts
This commit is contained in:
@@ -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',
|
||||
});
|
||||
Reference in New Issue
Block a user