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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
10 deletions
-
npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.ts
-
npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.html
|
|
|
@ -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(() => { |
|
|
|
|
|
|
|
@ -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> |
|
|
|
|