Manage Stakeholders: Remove uikit event handler and use cancelEmitter of modal. Update UIkit to 3.12.2

This commit is contained in:
Konstantinos Triantafyllou 2023-03-23 12:24:11 +02:00
parent 50255b1e7d
commit b9381c41cf
3 changed files with 3 additions and 8 deletions

View File

@ -43,7 +43,7 @@
"rxjs": "^6.5.1",
"ts-md5": "^1.2.0",
"tslib": "^2.0.0",
"uikit": "3.12.0",
"uikit": "3.12.2",
"zone.js": "~0.11.4"
},
"devDependencies": {

View File

@ -118,9 +118,8 @@
</div>
</ng-container>
</ng-template>
<modal-alert #editStakeholderModal
id="edit_modal" [large]="true" classTitle="uk-background-primary uk-light"
(alertOutput)="editStakeholderComponent.save(callback)"
<modal-alert #editStakeholderModal [large]="true" classTitle="uk-background-primary uk-light"
(alertOutput)="editStakeholderComponent.save(callback)" (cancelOutput)="editStakeholderComponent.removePhoto()"
[okDisabled]="editStakeholderComponent.disabled">
<div class="uk-height-large uk-position-relative" *ngIf="editStakeholderComponent.loading">
<loading class="uk-position-center"></loading>

View File

@ -90,10 +90,6 @@ export class ManageStakeholdersComponent implements OnInit, OnDestroy {
}, error => {
this.loading = false;
}));
this.subscriptions.push(UIkit.util.on(document, 'hidden', '#edit_modal', (): void => {
this.editStakeholderComponent.removePhoto();
}));
}
ngOnDestroy(): void {