@@ -16,25 +16,27 @@ <h2 class="font__16px font__weight-600">Create Project</h2>
16
16
</ div >
17
17
18
18
< div class ="modal--body padding-all__0px ">
19
- < app-create-project-component (onAction) ="$event.action == 'cancel' ? cancel() : createProject($event) " *ngIf ="projectStage === 'createProject' "> </ app-create-project-component >
19
+ < app-create-project-component (onAction) ="$event.action == 'cancel' ? cancel() : createProject($event?.data ) " *ngIf ="projectStage === 'createProject' "> </ app-create-project-component >
20
20
21
21
< div class ="card padding-all__24px margin-bottom__24px " *ngIf ="projectStage !== 'createProject' ">
22
22
< ul class ="setup-steps flex flex__align-items-center border__bottom padding-bottom__24px ">
23
- < li class ="setup-step--step done " *ngIf ="projectType === 'incoming' ">
23
+ < li class ="setup-step--step " *ngIf ="projectType === 'incoming' " [ngClass] =" { done: projectStage !== 'createSource', current: projectStage == 'createSource' } ">
24
24
< div class ="line "> </ div >
25
25
< div class ="margin-top__4px flex flex__align-items-center ">
26
26
< div class ="checkbox margin-all__0px width__16px height__16px border__all rounded__50px "> </ div >
27
27
< div class ="text margin-left__8px font__14px font__weight-500 "> Create Source</ div >
28
28
</ div >
29
29
</ li >
30
- < li class ="setup-step--step current ">
30
+
31
+ < li class ="setup-step--step " [ngClass] ="{ done: projectStage == 'createSubscription', current: projectStage == 'createApplication' } ">
31
32
< div class ="line bg__primary "> </ div >
32
33
< div class ="margin-top__4px flex flex__align-items-center ">
33
34
< div class ="checkbox margin-all__0px width__16px height__16px border__all rounded__50px "> </ div >
34
35
< div class ="text margin-left__8px font__14px font__weight-500 "> Create Application</ div >
35
36
</ div >
36
37
</ li >
37
- < li class ="setup-step--step ">
38
+
39
+ < li class ="setup-step--step " [ngClass] ="{ current: projectStage == 'createSubscription' } ">
38
40
< div class ="line bg__primary "> </ div >
39
41
< div class ="margin-top__4px flex flex__align-items-center ">
40
42
< div class ="checkbox margin-all__0px width__16px height__16px border__all rounded__50px "> </ div >
@@ -45,20 +47,29 @@ <h2 class="font__16px font__weight-600">Create Project</h2>
45
47
46
48
< div *ngIf ="projectStage === 'createSource' ">
47
49
< h3 class ="margin-top__24px font__weight-600 font__18px "> Create your first source</ h3 >
48
- < p class ="font__14px color__grey margin-top__8px width__80 ">
49
- Your source represents the etiam diam mi, egestas tortor nulla quis consectetur mauris eget. Penatibus placerat massa, lectus lectus
50
- </ p >
50
+ < p class ="font__14px color__grey margin-top__8px width__80 "> Create a source that'll triger a webhook event in your project</ p >
51
51
</ div >
52
52
< div *ngIf ="projectStage === 'createApplication' ">
53
53
< h3 class ="margin-top__24px font__weight-600 font__18px "> Create your first application</ h3 >
54
- < p class ="font__14px color__grey margin-top__8px width__80 ">
55
- Your source represents the etiam diam mi, egestas tortor nulla quis consectetur mauris eget. Penatibus placerat massa, lectus lectus
56
- </ p >
54
+ < p class ="font__14px color__grey margin-top__8px width__80 "> Create and aplication and endpoint(s) that'll listen to events on this project</ p >
55
+ </ div >
56
+ < div *ngIf ="projectStage === 'createSubscription' ">
57
+ < h3 class ="margin-top__24px font__weight-600 font__18px "> Create your first subscription</ h3 >
58
+ < p class ="font__14px color__grey margin-top__8px width__80 "> Create a subscription that'll listen to events from your source</ p >
57
59
</ div >
58
60
</ div >
59
61
60
- < app-create-source *ngIf ="projectStage === 'createSource' "> </ app-create-source >
62
+ < app-create-source
63
+ *ngIf ="projectStage === 'createSource' && privateService.activeProjectDetails.uid "
64
+ (onAction) ="$event?.action == 'cancel' ? cancel() : projectType == 'incoming' ? onProjectOnboardingComplete() : (projectStage = 'createApplication') "
65
+ > </ app-create-source >
66
+
67
+ < app-create-app
68
+ *ngIf ="projectStage === 'createApplication' && privateService.activeProjectDetails.uid "
69
+ (discardApp) ="cancel() "
70
+ (createApp) ="projectType == 'incoming' ? (projectStage = 'createSource') : (projectStage = 'createSubscription') "
71
+ > </ app-create-app >
61
72
62
- < app-create-app *ngIf ="projectStage === 'createApplication' " (discardApp ) ="cancel () " (createApp) =" projectStage = 'createSubscription' " > </ app-create-app >
73
+ < app-create-subscription *ngIf ="projectStage === 'createSubscription' && privateService.activeProjectDetails.uid " (onAction ) ="onProjectOnboardingComplete () "> </ app-create-subscription >
63
74
</ div >
64
75
</ div >
0 commit comments