Skip to content

Commit

Permalink
feat(catalog): add metadata button (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeLafreniere18 authored and mbarbeau committed Jul 30, 2019
1 parent 7771fb9 commit b1083e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<mat-list-item>
<mat-icon mat-list-avatar svgIcon="{{icon}}"></mat-icon>
<h4 mat-line>{{title}}</h4>


<igo-metadata-button [layer]="layer"></igo-metadata-button>

<button
mat-icon-button
tooltip-position="below"
Expand All @@ -11,4 +13,5 @@ <h4 mat-line>{{title}}</h4>
(click)="onToggleClick()">
<mat-icon [svgIcon]="added ? 'delete' : 'plus'"></mat-icon>
</button>

</mat-list-item>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
IgoListModule
} from '@igo2/common';

import { IgoMetadataModule } from './../../metadata/metadata.module';
import { CatalogBrowserComponent } from './catalog-browser.component';
import { CatalogBrowserLayerComponent } from './catalog-browser-layer.component';
import { CatalogBrowserGroupComponent } from './catalog-browser-group.component';
Expand All @@ -30,7 +31,8 @@ import { CatalogBrowserGroupComponent } from './catalog-browser-group.component'
MatTooltipModule,
IgoLanguageModule,
IgoListModule,
IgoCollapsibleModule
IgoCollapsibleModule,
IgoMetadataModule
],
exports: [
CatalogBrowserComponent
Expand Down
5 changes: 3 additions & 2 deletions packages/geo/src/lib/catalog/shared/catalog.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { EntityState } from '@igo2/common';

import { LayerOptions, TooltipType } from '../../layer';
import { MetadataLayerOptions } from './../../metadata/shared/metadata.interface';
import { TooltipType } from '../../layer';
import { TimeFilterOptions } from '../../filter';
import { QueryFormat, QueryHtmlTarget } from '../../query';

Expand Down Expand Up @@ -33,7 +34,7 @@ export interface CatalogItem {
type: CatalogItemType;
}

export interface CatalogItemLayer<L = LayerOptions> extends CatalogItem {
export interface CatalogItemLayer<L = MetadataLayerOptions> extends CatalogItem {
options: L;
}

Expand Down

0 comments on commit b1083e8

Please sign in to comment.