Skip to content

Commit

Permalink
🔥 Remove deprecated dim property on ModalConfig (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard authored Apr 21, 2022
1 parent 51a767c commit 6b1c587
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export interface ModalConfig {
modalRoute?: ActivatedRoute;
siblingModalRouteActivated$?: Observable<ActivatedRoute>;
flavor?: ModalFlavor;
/**
* @deprecated Will be removed in next major version.
*/
dim?: number;
componentProps?: { [key: string]: any };
// the supplementary action is only available in the drawer
drawerSupplementaryAction?: DrawerSupplementaryAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ export class ModalController implements OnDestroy {
}

public async showModal(config: ModalConfig, onClose?: (data?: any) => void): Promise<void> {
if (config.hasOwnProperty('dim')) {
console.warn('ModalConfig.dim is deprecated - please remove from your configuration.');
}
await this.showAndRegisterOverlay(() => this.modalHelper.showModalWindow(config), onClose);
}

Expand Down

0 comments on commit 6b1c587

Please sign in to comment.