Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Add FireCloud button
Browse files Browse the repository at this point in the history
  • Loading branch information
coverbeck committed Mar 21, 2018
1 parent 7bc73a7 commit 174a74c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spa/src/app/files/files.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
matTooltip="Export to FireCloud"
[matTooltipPosition]="'before'"
(click)="onExportToFireCloud()">
<mat-icon>cloud_upload</mat-icon>
<mat-icon svgIcon="firecloud"></mat-icon>
</button>
<bw-table></bw-table>
</div>
9 changes: 7 additions & 2 deletions spa/src/app/files/files.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import {
import { selectFileFacetsFileFacets, selectFileSummary } from "./_ngrx/file.selectors";
import { AppState } from "../_ngrx/app.state";
import { FetchFileFacetsRequestAction } from "./_ngrx/file-facet-list/file-facet-list.actions";
import { MatDialog } from "@angular/material";
import { MatDialog, MatIconRegistry } from "@angular/material";
import { FileExportComponent } from "./file-export/file-export.component";
import { FileExportManifestState } from "./_ngrx/file-export/file-export.state";
import { FireCloudDAO } from "./file-export/fire-cloud-dao";
import { CCAlertDialogComponent } from "../shared/cc-alert-dialog/cc-alert-dialog.component";
import { DomSanitizer } from "@angular/platform-browser";

@Component({
selector: "bw-files",
Expand All @@ -51,10 +52,14 @@ export class FilesComponent implements OnInit {
constructor(route: ActivatedRoute,
store: Store<AppState>,
private dialog: MatDialog,
private fireCloudDAO: FireCloudDAO) {
private fireCloudDAO: FireCloudDAO,
private iconRegistry: MatIconRegistry,
private sanitizer: DomSanitizer) {

this.route = route;
this.store = store;
iconRegistry.addSvgIcon("firecloud",
sanitizer.bypassSecurityTrustResourceUrl("/assets/images/thirdparty/FireCloud-white-icon.svg"));
}

/**
Expand Down
4 changes: 4 additions & 0 deletions spa/src/app/files/files.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { TableComponent } from "./table/table.component";
import { FileExportComponent } from "./file-export/file-export.component";
import { FireCloudDAO } from "./file-export/fire-cloud-dao";
import { CCAlertDialogComponent } from "../shared/cc-alert-dialog/cc-alert-dialog.component";
import { HttpClientModule } from "@angular/common/http";

@NgModule({
imports: [
Expand All @@ -80,6 +81,9 @@ import { CCAlertDialogComponent } from "../shared/cc-alert-dialog/cc-alert-dialo
CCStopPropagationModule,
CcTypeaheadModule,

// Needed for icon registry
HttpClientModule,

KeywordsModule

// EffectsModule.run(FilesEffects)
Expand Down
30 changes: 30 additions & 0 deletions spa/src/assets/images/thirdparty/FireCloud-white-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 174a74c

Please sign in to comment.