Browse Source

Remove symbol icon from dialog header

pull/244/head
Thomas 4 years ago
parent
commit
215cd78c80
  1. 6
      apps/client/src/app/components/dialog-header/dialog-header.component.html
  2. 1
      apps/client/src/app/components/dialog-header/dialog-header.component.ts
  3. 3
      apps/client/src/app/components/dialog-header/dialog-header.module.ts
  4. 1
      apps/client/src/app/components/position/position-detail-dialog/interfaces/interfaces.ts
  5. 1
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html
  6. 1
      apps/client/src/app/components/position/position.component.ts

6
apps/client/src/app/components/dialog-header/dialog-header.component.html

@ -1,9 +1,3 @@
<gf-symbol-icon
*ngIf="symbolUrl"
class="mr-1"
size="large"
[url]="symbolUrl"
></gf-symbol-icon>
<span class="flex-grow-1 text-truncate">{{ title }}</span>
<button
*ngIf="deviceType !== 'mobile'"

1
apps/client/src/app/components/dialog-header/dialog-header.component.ts

@ -16,7 +16,6 @@ import {
})
export class DialogHeaderComponent implements OnInit {
@Input() deviceType: string;
@Input() symbolUrl: string;
@Input() title: string;
@Output() closeButtonClicked = new EventEmitter<void>();

3
apps/client/src/app/components/dialog-header/dialog-header.module.ts

@ -1,14 +1,13 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { GfSymbolIconModule } from '@ghostfolio/client/components/symbol-icon/symbol-icon.module';
import { DialogHeaderComponent } from './dialog-header.component';
@NgModule({
declarations: [DialogHeaderComponent],
exports: [DialogHeaderComponent],
imports: [CommonModule, GfSymbolIconModule, MatButtonModule],
imports: [CommonModule, MatButtonModule],
providers: [],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})

1
apps/client/src/app/components/position/position-detail-dialog/interfaces/interfaces.ts

@ -3,6 +3,5 @@ export interface PositionDetailDialogParams {
deviceType: string;
locale: string;
symbol: string;
symbolUrl: string;
title: string;
}

1
apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html

@ -1,7 +1,6 @@
<gf-dialog-header
mat-dialog-title
[deviceType]="data.deviceType"
[symbolUrl]="data.symbolUrl"
[title]="data.title"
(closeButtonClicked)="onClose()"
></gf-dialog-header>

1
apps/client/src/app/components/position/position.component.ts

@ -65,7 +65,6 @@ export class PositionComponent implements OnDestroy, OnInit {
deviceType: this.deviceType,
locale: this.locale,
symbol: this.position?.symbol,
symbolUrl: this.position?.url,
title: this.position?.name
},
height: this.deviceType === 'mobile' ? '97.5vh' : '80vh',

Loading…
Cancel
Save