File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
angular-primeng-app/src/app/partials/settings-dialog Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ <h3>Try with your Blog</h3>
2222 < i class ="pi pi-times " (click) ="newBlogInput='' "> </ i >
2323 }
2424 < input type ="text " pInputText placeholder ="Type a Blog URL " [(ngModel)] ="newBlogInput " />
25+ < div class ="error ">
26+ @if (emptyInput) {
27+ < small > Please provide a valid Hashnode Blog URL.</ small >
28+ }
29+ @if (noBlogFound) {
30+ < small > No Hashnode Blog found.</ small >
31+ }
32+ @if (invalidInput) {
33+ < small > Invalid input, please try again.</ small >
34+ }
35+ </ div >
2536 </ span >
2637 </ div >
2738 < div class ="dialog-actions ">
Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ p-dialog {
3131 input {
3232 margin : 1rem 0 ;
3333 }
34+
35+
36+ .error {
37+ color : red ;
38+ position : absolute ;
39+ top : 4rem ;
40+ font-size : 0.9rem ;
41+ text-align : center ;
42+ font-weight : 300 ;
43+ }
3444 }
3545}
3646
You can’t perform that action at this time.
0 commit comments