1
- < h3 > Create a new subscription</ h3 >
1
+ < mat-dialog-content >
2
+ < h3 > Create a new subscription</ h3 >
2
3
3
- < mat-horizontal-stepper >
4
- < mat-step color ="accent ">
5
- < ng-template matStepLabel > Subscription Type</ ng-template >
6
- < p > Which type of subscription would you like to create?</ p >
7
- < mat-action-list >
8
- < button mat-list-item matStepperNext (click) ="setConfigType('pull') ">
9
- < mat-icon mat-list-icon > move_to_inbox</ mat-icon >
10
- < div mat-line > Pull Subscription</ div >
11
- < div mat-line class =" caption " > Subscribers must pull messages manually.</ div >
12
- </ button >
4
+ < mat-horizontal-stepper >
5
+ < mat-step color ="accent ">
6
+ < ng-template matStepLabel > Subscription Type</ ng-template >
7
+ < p > Which type of subscription would you like to create?</ p >
8
+ < mat-action-list >
9
+ < button mat-list-item matStepperNext (click) ="setConfigType('pull') ">
10
+ < mat-icon matListItemIcon > move_to_inbox</ mat-icon >
11
+ < div matListItemTitle > Pull Subscription</ div >
12
+ < div matListItemLine > Subscribers must pull messages manually.</ div >
13
+ </ button >
13
14
14
- < button mat-list-item matStepperNext (click) ="setConfigType('push') ">
15
- < mat-icon mat-list-icon > send</ mat-icon >
16
- < div mat-line > Push Subscription</ div >
17
- < div mat-line class =" caption " > Messages will be forwarded to an endpoint.</ div >
18
- </ button >
19
- </ mat-action-list >
20
- </ mat-step >
15
+ < button mat-list-item matStepperNext (click) ="setConfigType('push') ">
16
+ < mat-icon matListItemIcon > send</ mat-icon >
17
+ < div matListItemTitle > Push Subscription</ div >
18
+ < div matListItemLine > Messages will be forwarded to an endpoint.</ div >
19
+ </ button >
20
+ </ mat-action-list >
21
+ </ mat-step >
21
22
22
- < mat-step color ="accent ">
23
- < ng-template matStepLabel > Configuration</ ng-template >
23
+ < mat-step color ="accent ">
24
+ < ng-template matStepLabel > Configuration</ ng-template >
24
25
25
- < div class ="final-config ">
26
- < mat-form-field appearance ="outline " [style.width] ="'100%' " class ="nameInput ">
27
- < mat-label > Enter subscription name</ mat-label >
28
- < mat-hint > becomes '/projects/project-name/subscriptions/{{this.subscriptionForm.value}}'</ mat-hint >
29
- < input matInput type ="text " autocomplete ="off " [formControl] ="this.subscriptionForm ">
30
- </ mat-form-field >
26
+ < div class ="final-config ">
27
+ < mat-form-field appearance ="outline " [style.width] ="'100%' " class ="nameInput ">
28
+ < mat-label > Enter subscription name</ mat-label >
29
+ < mat-hint > becomes '/projects/project-name/subscriptions/{{this.subscriptionForm.value}}'</ mat-hint >
30
+ < input matInput type ="text " autocomplete ="off " [formControl] ="this.subscriptionForm ">
31
+ </ mat-form-field >
31
32
32
- @if (this.configType === 'pull') {
33
+ @if (this.configType === 'pull') {
33
34
< button mat-raised-button color ="accent " (click) ="createPullSubscription() "
34
35
[disabled] ="this.subscriptionForm.invalid ">
35
36
Create Pull Subscription
36
37
< mat-icon > add</ mat-icon >
37
38
</ button >
38
- } @else {
39
+ } @else {
39
40
< mat-form-field appearance ="outline " [style.width] ="'100%' " class ="nameInput ">
40
41
< mat-label > Enter endpoint url</ mat-label >
41
42
< mat-hint > new messages will trigger this endpoint.</ mat-hint >
@@ -46,9 +47,9 @@ <h3>Create a new subscription</h3>
46
47
Create Push Subscription
47
48
< mat-icon > add</ mat-icon >
48
49
</ button >
49
- }
50
- </ div >
51
- </ mat-step >
52
- </ mat-horizontal-stepper >
53
-
50
+ }
51
+ </ div >
52
+ </ mat-step >
53
+ </ mat-horizontal-stepper >
54
54
55
+ </ mat-dialog-content >
0 commit comments