Browse Source

apply feedback

- rename Componen into GfShowAccessTokenDialogComponent
- added import for ion-icon
- moved import into proper line after renaming
pull/5525/head
Sven Günther 6 days ago
parent
commit
ac77b99a7c
  1. 8
      apps/client/src/app/pages/register/register-page.component.ts
  2. 4
      apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts

8
apps/client/src/app/pages/register/register-page.component.ts

@ -19,15 +19,15 @@ import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators'; import { takeUntil } from 'rxjs/operators';
import { ShowAccessTokenDialogParams } from './show-access-token-dialog/interfaces/interfaces'; import { ShowAccessTokenDialogParams } from './show-access-token-dialog/interfaces/interfaces';
import { ShowAccessTokenDialog } from './show-access-token-dialog/show-access-token-dialog.component'; import { GfShowAccessTokenDialogComponent } from './show-access-token-dialog/show-access-token-dialog.component';
@Component({ @Component({
host: { class: 'page' }, host: { class: 'page' },
imports: [ imports: [
GfLogoComponent, GfLogoComponent,
GfShowAccessTokenDialogComponent,
MatButtonModule, MatButtonModule,
RouterModule, RouterModule
ShowAccessTokenDialog
], ],
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-register-page', selector: 'gf-register-page',
@ -89,7 +89,7 @@ export class GfRegisterPageComponent implements OnDestroy, OnInit {
} }
public openShowAccessTokenDialog() { public openShowAccessTokenDialog() {
const dialogRef = this.dialog.open(ShowAccessTokenDialog, { const dialogRef = this.dialog.open(GfShowAccessTokenDialogComponent, {
data: { data: {
deviceType: this.deviceType, deviceType: this.deviceType,
needsToAcceptTermsOfService: this.hasPermissionForSubscription needsToAcceptTermsOfService: this.hasPermissionForSubscription

4
apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts

@ -20,6 +20,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input'; import { MatInputModule } from '@angular/material/input';
import { MatStepper, MatStepperModule } from '@angular/material/stepper'; import { MatStepper, MatStepperModule } from '@angular/material/stepper';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { IonIcon } from '@ionic/angular/standalone';
import { addIcons } from 'ionicons'; import { addIcons } from 'ionicons';
import { import {
arrowForwardOutline, arrowForwardOutline,
@ -37,6 +38,7 @@ import { ShowAccessTokenDialogParams } from './interfaces/interfaces';
ClipboardModule, ClipboardModule,
CommonModule, CommonModule,
FormsModule, FormsModule,
IonIcon,
MatButtonModule, MatButtonModule,
MatCheckboxModule, MatCheckboxModule,
MatDialogModule, MatDialogModule,
@ -52,7 +54,7 @@ import { ShowAccessTokenDialogParams } from './interfaces/interfaces';
styleUrls: ['./show-access-token-dialog.scss'], styleUrls: ['./show-access-token-dialog.scss'],
templateUrl: 'show-access-token-dialog.html' templateUrl: 'show-access-token-dialog.html'
}) })
export class ShowAccessTokenDialog { export class GfShowAccessTokenDialogComponent {
@ViewChild(MatStepper) stepper!: MatStepper; @ViewChild(MatStepper) stepper!: MatStepper;
public accessToken: string; public accessToken: string;

Loading…
Cancel
Save