diff --git a/src/app/modules/hashtags/service/topbar.service.ts b/src/app/modules/hashtags/service/topbar.service.ts index 320060eae5ea1ed7f304f014a28c7d24a965cf1d..b7ab2fa1f42e863be8a28dcd8f501a0f3003f129 100644 --- a/src/app/modules/hashtags/service/topbar.service.ts +++ b/src/app/modules/hashtags/service/topbar.service.ts @@ -96,7 +96,7 @@ export class TopbarHashtagsService { * Credit to Arnaud Valensi - http://geekcoder.org/js-extract-hashtags-from-text/ */ - sliceHashTags(inputText: any) { + sliceHashTags(inputText: string) { const regex = /(?:^|\s)(?:#)([a-zA-Z\d]+)/gm; let matches = []; let match; diff --git a/src/app/modules/legacy/components/cards/activity/activity.html b/src/app/modules/legacy/components/cards/activity/activity.html index 7137ab19f3278805520576b38159c57eef2143b6..95ef343ae8b42f9c521c16aed727f002c3e348f4 100644 --- a/src/app/modules/legacy/components/cards/activity/activity.html +++ b/src/app/modules/legacy/components/cards/activity/activity.html @@ -29,7 +29,7 @@ > <i class="material-icons">trending_up</i> <a i18n="@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL" [hidden]="activity.boosted_onchain">Boosted</a> - <a i18n="@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL_ONCHAIN" [hidden]="!activity.boosted_onchain">Boosted Onchain</a> + <a i18n="@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL_ONCHAIN" [hidden]="!activity.boosted_onchain" [routerLink]="['/token']">Boosted Onchain</a> </div> <div class="mdl-card__supporting-text is-boosted" *ngIf="isUnlisted()"> <i class="material-icons unlisted">visibility_off</i> diff --git a/src/app/modules/legacy/components/cards/remind/remind.ts b/src/app/modules/legacy/components/cards/remind/remind.ts index 6eaf581aec8ffe0f01a4389d547854f7be2797ae..8e2568fd884aa1b9426c2b90b841f12282e0a838 100644 --- a/src/app/modules/legacy/components/cards/remind/remind.ts +++ b/src/app/modules/legacy/components/cards/remind/remind.ts @@ -15,6 +15,7 @@ import { AttachmentService } from '../../../../../services/attachment'; export class Remind { minds = window.Minds; + errorString: string = ''; activity: any; @Input() boosted: boolean = false; diff --git a/src/app/modules/modals/remind-composer/remind-composer.ts b/src/app/modules/modals/remind-composer/remind-composer.ts index b6c2c130d801e7ffc9505e32d9363c9d46505632..9a67015bc006a0158dfaa6b8b627d6a1c2d0f31c 100644 --- a/src/app/modules/modals/remind-composer/remind-composer.ts +++ b/src/app/modules/modals/remind-composer/remind-composer.ts @@ -73,6 +73,9 @@ export class RemindComposerModal { this.closed.next(true); } + /** + * Save the remind and close the popup. + */ send() { if (this.hashtagsService.sliceHashTags(this.message).length > 5) { this.error = `You have exceeded the maximum 5 hashtags in a post`;