Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 2x | <ish-modal-dialog
#modal
[options]="{
titleText: (product$ | async)?.name,
ariaLabelledBy: 'product-notification-edit-modal-title',
}"
>
@if (inventoryLoaded$ | async) {
@if (productNotification$ | async; as productNotification) {
<form
#form="ngForm"
body
ishFormSubmit
novalidate
[formGroup]="productNotificationForm"
(ngSubmit)="submitForm()"
>
<div class="modal-body">
<ish-product-image imageType="L" />
<ish-product-notification-edit-form
[form]="productNotificationForm"
[productNotification]="productNotification"
[userEmail]="userEmail$ | async"
/>
</div>
<div class="modal-footer">
<button
class="btn btn-primary"
data-testing-id="product-notification-edit-dialog-edit"
type="submit"
[disabled]="productNotificationForm.invalid && form.submitted"
>
{{ 'product.notification.edit.form.update.button.label' | translate }}
</button>
<button class="btn btn-secondary" type="button" (click)="hide()">
{{ 'product.notification.edit.form.cancel.button.label' | translate }}
</button>
</div>
</form>
} @else {
<form body ishFormSubmit novalidate [formGroup]="productNotificationForm" (ngSubmit)="submitForm()">
<div class="modal-body">
<ish-product-image imageType="L" />
<ish-product-notification-edit-form [form]="productNotificationForm" [userEmail]="userEmail$ | async" />
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="submit">
{{ 'product.notification.edit.form.create.button.label' | translate }}
</button>
<button class="btn btn-secondary" type="button" (click)="hide()">
{{ 'product.notification.edit.form.cancel.button.label' | translate }}
</button>
</div>
</form>
}
}
</ish-modal-dialog>
|