Skip to content

Commit 852bf93

Browse files
committed
base modal components used in tenant-change-dialog
1 parent b12f3d4 commit 852bf93

File tree

1 file changed

+9
-28
lines changed

1 file changed

+9
-28
lines changed

angular/src/account/tenant/tenant-change-dialog.component.html

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44
#changeTenantForm="ngForm"
55
(ngSubmit)="save()"
66
>
7-
<div class="modal-header">
8-
<h4 class="modal-title">{{ "ChangeTenant" | localize }}</h4>
9-
<button
10-
type="button"
11-
class="close"
12-
aria-label="Close"
13-
(click)="bsModalRef.hide()"
14-
>
15-
<span aria-hidden="true">×</span>
16-
</button>
17-
</div>
7+
<abp-modal-header
8+
[title]="'ChangeTenant' | localize"
9+
(onCloseClick)="bsModalRef.hide()"
10+
></abp-modal-header>
1811
<div class="modal-body">
1912
<div class="form-group row">
2013
<label class="col-md-3 col-form-label" for="tenancyName">
@@ -36,21 +29,9 @@ <h4 class="modal-title">{{ "ChangeTenant" | localize }}</h4>
3629
{{ "LeaveEmptyToSwitchToHost" | localize }}
3730
</span>
3831
</div>
39-
<div class="modal-footer justify-content-between">
40-
<button
41-
type="button"
42-
class="btn btn-default"
43-
[disabled]="saving"
44-
(click)="bsModalRef.hide()"
45-
>
46-
{{ "Cancel" | localize }}
47-
</button>
48-
<button
49-
type="submit"
50-
class="btn btn-primary"
51-
[disabled]="!changeTenantForm.form.valid || saving"
52-
>
53-
{{ "Save" | localize }}
54-
</button>
55-
</div>
32+
<abp-modal-footer
33+
[cancelDisabled]="saving"
34+
[saveDisabled]="!changeTenantForm.form.valid || saving"
35+
(onCancelClick)="bsModalRef.hide()"
36+
></abp-modal-footer>
5637
</form>

0 commit comments

Comments
 (0)