Browse Source

Merge pull request #7674 from abpframework/refactor/modal

Added an ngIf to modal footer
pull/6764/head
Bunyamin Coskuner 6 years ago
committed by GitHub
parent
commit
540bc72a4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts
  2. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html

9
npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts

@ -54,9 +54,6 @@ export class RolesComponent implements OnInit {
permissionManagementKey = ePermissionManagementComponents.PermissionManagement;
@ViewChild('formRef', { static: false, read: ElementRef })
formRef: ElementRef<HTMLFormElement>;
onVisiblePermissionChange = event => {
this.visiblePermissions = event;
};
@ -130,12 +127,6 @@ export class RolesComponent implements OnInit {
this.list.hookToQuery(query => this.store.dispatch(new GetRoles(query))).subscribe();
}
onClickSaveButton() {
this.formRef.nativeElement.dispatchEvent(
new Event('submit', { bubbles: true, cancelable: true }),
);
}
openPermissionsModal(providerKey: string) {
this.providerKey = providerKey;
setTimeout(() => {

2
npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html

@ -17,7 +17,7 @@
<div id="abp-modal-body" class="modal-body">
<ng-container *ngTemplateOutlet="abpBody"></ng-container>
</div>
<div id="abp-modal-footer" class="modal-footer">
<div *ngIf="abpFooter" id="abp-modal-footer" class="modal-footer">
<ng-container *ngTemplateOutlet="abpFooter"></ng-container>
</div>
</ng-template>

Loading…
Cancel
Save