...
 
Commits (2)
......@@ -1759,11 +1759,14 @@
<ng-template ngSwitchCase="rewards_state_decrease_today">
<a target="_blank" routerLink="/wallet/tokens/contributions">
<p i18n="@@NOTIFICATIONS__NOTIFICATION__REWARDS__USER_STATE_DECREASE_TODAY">
It's not too late! You will drop down to a {{ notification.params.state }} user
by the end of today and your daily token reward multiplier will reduce to
{{ notification.params.reward_factor }}x. Get liking and commenting to bring
your score back up!
<p
i18n="@@NOTIFICATIONS__NOTIFICATION__REWARDS__USER_STATE_DECREASE_TODAY"
>
It's not too late! You will drop down to a
{{ notification.params.state }} user by the end of today and your daily
token reward multiplier will reduce to
{{ notification.params.reward_factor }}x. Get liking and commenting to
bring your score back up!
</p>
</a>
</ng-template>
......
......@@ -56,7 +56,10 @@
{{ overview.yourRewardFactor | number }}x
</ng-container>
<m-tooltip icon="help">
Current User State: <ng-container *ngIf="user.user_state !== null">{{ user.user_state | titlecase }}</ng-container>
Current User State:
<ng-container *ngIf="user.user_state !== null">{{
user.user_state | titlecase
}}</ng-container>
</m-tooltip>
</div>
</div>
......
......@@ -3,34 +3,20 @@ import {
ComponentFixture,
TestBed,
fakeAsync,
tick,
} from '@angular/core/testing';
import {
Component,
DebugElement,
ChangeDetectorRef,
Input,
Output,
} from '@angular/core';
import { ChangeDetectorRef } from '@angular/core';
import { WalletTokenContributionsOverviewComponent } from './overview.component';
import { clientMock } from '../../../../../tests/client-mock.spec';
import { Client } from '../../../../services/api/client';
import { Web3WalletService } from '../../../blockchain/web3-wallet.service';
import { TokenPipe } from '../../../../common/pipes/token.pipe';
import { TimediffPipe } from '../../../../common/pipes/timediff.pipe';
import { of } from 'rxjs/internal/observable/of';
import { ActivatedRoute, Router } from '@angular/router';
import {
MockComponent,
MockDirective,
MockService,
} from '../../../../utils/mock';
import { Router } from '@angular/router';
import { Session } from '../../../../services/session';
import { RouterTestingModule } from '@angular/router/testing';
import { By } from '@angular/platform-browser';
import { sessionMock } from '../../../../../tests/session-mock.spec';
import { TooltipComponent } from '../../../../common/components/tooltip/tooltip.component';
describe('WalletTokenContributionsOverviewComponent', () => {
let comp: WalletTokenContributionsOverviewComponent;
let fixture: ComponentFixture<WalletTokenContributionsOverviewComponent>;
......@@ -41,6 +27,7 @@ describe('WalletTokenContributionsOverviewComponent', () => {
WalletTokenContributionsOverviewComponent,
TimediffPipe,
TokenPipe,
TooltipComponent,
],
providers: [
{ provide: Client, useValue: clientMock },
......