Skip to content

Commit 33afc15

Browse files
committed
#25 UX improvements by integrating a countdown timer instead of showing users an unknown time-consuming loading indicator - typo fix, unused code block removal
1 parent 5c42f49 commit 33afc15

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/app/components/loading/loading.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<article fxLayoutAlign="center center"
22
[ngStyle.gt-sm]="{'font-size': '22px'}"
33
[ngStyle.lt-md]="{'padding-left': '25px', 'padding-right': '25px', 'font-size': '17px'}"
4-
class="margin-bottom-md loading-text-area">'Mortgage Expense Calculator' is an open-source project and it needs your support!
5-
<br>Please consider to share and/or donate.</article>
4+
class="margin-bottom-md loading-text-area">'Mortgage Expense Calculator' is an open-source project, and it needs your support!
5+
<br>Please consider sharing and/or donating.</article>
66

77
<article class="countdown-area">{{ loadingService.countDownNumber }}</article>
88

src/app/components/loading/loading.service.ts

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export class LoadingService {
2727

2828
this.countDownNumber = seconds;
2929

30-
seconds === 1 ? `${this.countDownNumber} second` : `${this.countDownNumber} seconds`;
31-
3230
if (seconds <= 0) {
3331
clearInterval(this.countDownInterval);
3432

0 commit comments

Comments
 (0)