Browse Source

refactor(client): migrate login with access token dialog to standalone

- Remove component from header imports array (not needed for MatDialog)

- Update component name to GfLoginWithAccessTokenDialogComponent

- Remove login-with-access-token-dialog.module.ts

- Update CHANGELOG.md with correct positioning
pull/5500/head
David Requeno 2 months ago
parent
commit
7f391aaed3
  1. 2
      CHANGELOG.md
  2. 5
      apps/client/src/app/components/header/header.component.ts
  3. 4
      apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts

2
CHANGELOG.md

@ -9,13 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Refactored the login with access token dialog component to standalone
- Extended the variations of the interstitials for the subscription - Extended the variations of the interstitials for the subscription
- Renamed the job identifier column in the jobs queue view of the admin control panel - Renamed the job identifier column in the jobs queue view of the admin control panel
- Refactored the markets page to standalone - Refactored the markets page to standalone
- Refactored the fear and greed index component to standalone - Refactored the fear and greed index component to standalone
- Refactored the header component to standalone - Refactored the header component to standalone
- Refactored the investment chart component to standalone - Refactored the investment chart component to standalone
- Refactored the login with access token dialog component to standalone
- Refactored the rule component to standalone - Refactored the rule component to standalone
- Refactored the rules component to standalone - Refactored the rules component to standalone
- Refactored the subscription interstitial dialog component to standalone - Refactored the subscription interstitial dialog component to standalone

5
apps/client/src/app/components/header/header.component.ts

@ -49,7 +49,7 @@ import {
} from '../../services/settings-storage.service'; } from '../../services/settings-storage.service';
import { TokenStorageService } from '../../services/token-storage.service'; import { TokenStorageService } from '../../services/token-storage.service';
import { UserService } from '../../services/user/user.service'; import { UserService } from '../../services/user/user.service';
import { GfLoginWithAccessTokenDialog } from '../login-with-access-token-dialog/login-with-access-token-dialog.component'; import { GfLoginWithAccessTokenDialogComponent } from '../login-with-access-token-dialog/login-with-access-token-dialog.component';
@Component({ @Component({
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
@ -59,7 +59,6 @@ import { GfLoginWithAccessTokenDialog } from '../login-with-access-token-dialog/
GfLogoComponent, GfLogoComponent,
GfPremiumIndicatorComponent, GfPremiumIndicatorComponent,
IonIcon, IonIcon,
GfLoginWithAccessTokenDialog,
MatBadgeModule, MatBadgeModule,
MatButtonModule, MatButtonModule,
MatMenuModule, MatMenuModule,
@ -273,7 +272,7 @@ export class GfHeaderComponent implements OnChanges {
} }
public openLoginDialog() { public openLoginDialog() {
const dialogRef = this.dialog.open(GfLoginWithAccessTokenDialog, { const dialogRef = this.dialog.open(GfLoginWithAccessTokenDialogComponent, {
autoFocus: false, autoFocus: false,
data: { data: {
accessToken: '', accessToken: '',

4
apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts

@ -43,7 +43,7 @@ import { GfDialogHeaderComponent } from '../dialog-header/dialog-header.componen
styleUrls: ['./login-with-access-token-dialog.scss'], styleUrls: ['./login-with-access-token-dialog.scss'],
templateUrl: './login-with-access-token-dialog.html' templateUrl: './login-with-access-token-dialog.html'
}) })
export class GfLoginWithAccessTokenDialog { export class GfLoginWithAccessTokenDialogComponent {
public accessTokenFormControl = new FormControl( public accessTokenFormControl = new FormControl(
this.data.accessToken, this.data.accessToken,
Validators.required Validators.required
@ -52,7 +52,7 @@ export class GfLoginWithAccessTokenDialog {
public constructor( public constructor(
@Inject(MAT_DIALOG_DATA) public data: any, @Inject(MAT_DIALOG_DATA) public data: any,
public dialogRef: MatDialogRef<GfLoginWithAccessTokenDialog>, public dialogRef: MatDialogRef<GfLoginWithAccessTokenDialogComponent>,
private internetIdentityService: InternetIdentityService, private internetIdentityService: InternetIdentityService,
private router: Router, private router: Router,
private settingsStorageService: SettingsStorageService, private settingsStorageService: SettingsStorageService,

Loading…
Cancel
Save