1- < h3 > Create a new subscription</ h3 >
1+ < mat-dialog-content >
2+ < h3 > Create a new subscription</ h3 >
23
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 >
1314
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 >
2122
22- < mat-step color ="accent ">
23- < ng-template matStepLabel > Configuration</ ng-template >
23+ < mat-step color ="accent ">
24+ < ng-template matStepLabel > Configuration</ ng-template >
2425
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 >
3132
32- @if (this.configType === 'pull') {
33+ @if (this.configType === 'pull') {
3334 < button mat-raised-button color ="accent " (click) ="createPullSubscription() "
3435 [disabled] ="this.subscriptionForm.invalid ">
3536 Create Pull Subscription
3637 < mat-icon > add</ mat-icon >
3738 </ button >
38- } @else {
39+ } @else {
3940 < mat-form-field appearance ="outline " [style.width] ="'100%' " class ="nameInput ">
4041 < mat-label > Enter endpoint url</ mat-label >
4142 < mat-hint > new messages will trigger this endpoint.</ mat-hint >
@@ -46,9 +47,9 @@ <h3>Create a new subscription</h3>
4647 Create Push Subscription
4748 < mat-icon > add</ mat-icon >
4849 </ button >
49- }
50- </ div >
51- </ mat-step >
52- </ mat-horizontal-stepper >
53-
50+ }
51+ </ div >
52+ </ mat-step >
53+ </ mat-horizontal-stepper >
5454
55+ </ mat-dialog-content >
0 commit comments