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 { 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({
host: { class: 'page' },
imports: [
GfLogoComponent,
GfShowAccessTokenDialogComponent,
MatButtonModule,
RouterModule,
ShowAccessTokenDialog
RouterModule
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-register-page',
@ -89,7 +89,7 @@ export class GfRegisterPageComponent implements OnDestroy, OnInit {
}
public openShowAccessTokenDialog() {
const dialogRef = this.dialog.open(ShowAccessTokenDialog, {
const dialogRef = this.dialog.open(GfShowAccessTokenDialogComponent, {
data: {
deviceType: this.deviceType,
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 { MatStepper, MatStepperModule } from '@angular/material/stepper';
import { RouterModule } from '@angular/router';
import { IonIcon } from '@ionic/angular/standalone';
import { addIcons } from 'ionicons';
import {
arrowForwardOutline,
@ -37,6 +38,7 @@ import { ShowAccessTokenDialogParams } from './interfaces/interfaces';
ClipboardModule,
CommonModule,
FormsModule,
IonIcon,
MatButtonModule,
MatCheckboxModule,
MatDialogModule,
@ -52,7 +54,7 @@ import { ShowAccessTokenDialogParams } from './interfaces/interfaces';
styleUrls: ['./show-access-token-dialog.scss'],
templateUrl: 'show-access-token-dialog.html'
})
export class ShowAccessTokenDialog {
export class GfShowAccessTokenDialogComponent {
@ViewChild(MatStepper) stepper!: MatStepper;
public accessToken: string;

Loading…
Cancel
Save