Skip to content

Commit

Permalink
feat: add feedback link
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsukhanov committed Mar 6, 2024
1 parent 72fcef9 commit 83190de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 4 additions & 2 deletions modules/pages/about/src/lib/about-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ <h2 class="about-section-title">

<section class="about-section">
<h2 class="about-section-title">
{{ 'about.versionTitle' | transloco }}
{{ 'about.feedbackTitle' | transloco }}
</h2>
<p class="about-section-content">
{{ appVersion$ | async }}
<a [href]="discordURL">
{{ 'about.feedbackDiscord' | transloco }}
</a>
</p>
</section>

Expand Down
7 changes: 1 addition & 6 deletions modules/pages/about/src/lib/about-page.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { TranslocoPipe, TranslocoService } from '@ngneat/transloco';
import { Store } from '@ngrx/store';
import { AsyncPipe } from '@angular/common';
import { TitleService } from '@app/shared-misc';
import { IState } from '@app/store';
import { ChangelogComponent } from '@app/shared-ui';

@Component({
Expand All @@ -28,14 +26,11 @@ export class AboutPageComponent implements OnInit {

public readonly licenseURL = 'https://github.com/nvsukhanov/MOC-Commander/blob/main/LICENSE.md';

// eslint-disable-next-line @ngrx/prefer-selector-in-select
public readonly appVersion$ = this.store.select((state) => state.appVersion);
public readonly discordURL = 'https://discord.gg/N5wkG547';

constructor(
private readonly titleService: TitleService,
private readonly translocoService: TranslocoService,
// eslint-disable-next-line @ngrx/no-typed-global-store
private readonly store: Store<IState>
) {
}

Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@
"sourcesTitle": "Sources",
"githubTitle": "MOC Commander GitHub",
"githubApiTitle": "rxPoweredUp GitHub",
"versionTitle": "Version"
"feedbackTitle": "Feedback",
"feedbackDiscord": "Discord"
},
"io": {
"hardwareRevision": "Hardware Revision",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@
"sourcesTitle": "Исходный код",
"githubTitle": "MOC Commander GitHub",
"githubApiTitle": "rxPoweredUp GitHub",
"versionTitle": "Версия"
"feedbackTitle": "Обратная связь",
"feedbackDiscord": "Discord"
},
"io": {
"hardwareRevision": "Аппаратная версия",
Expand Down

0 comments on commit 83190de

Please sign in to comment.