Skip to content

Commit

Permalink
feat(filter): minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Apr 4, 2019
1 parent e76307c commit c0669a8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
6 changes: 4 additions & 2 deletions src/app/pages/portal/portal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
[backdropShown]="expansionPanelBackdropShown">

<ng-container expansionPanelHeader>
<igo-editor-selector igoWfsEditorSelector [store]="editorStore" [map]="map"></igo-editor-selector>
<igo-editor-selector igoEditorSelector [store]="editorStore" [map]="map"></igo-editor-selector>
<igo-actionbar
*ngIf="editor"
[store]="editor.actionStore"
Expand All @@ -81,12 +81,14 @@
</ng-container>

<igo-entity-table
*ngIf="editor"
*ngIf="editor && editor.entityStore"
class="table-compact table-centered"
[store]="editor.entityStore"
[template]="editor.tableTemplate">
</igo-entity-table>

<span *ngIf="editor && !editor.entityStore">{{'noEntityStore' | translate}}</span>

</igo-expansion-panel>

</mat-sidenav-container>
Expand Down
3 changes: 3 additions & 0 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export class PortalComponent implements OnInit, OnDestroy {
}

get actionbarMode(): ActionbarMode {
if (this.mediaService.media$.value === Media.Mobile) {
return ActionbarMode.Overlay;
}
return this.expansionPanelExpanded
? ActionbarMode.Dock
: ActionbarMode.Overlay;
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/portal/portal.variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $igo-footer-height: 49px;

$igo-expansion-panel-collapsed-height: 48px;
$igo-expansion-panel-collapsed-width: 52px;
$igo-expansion-panel-height: 281px;
$igo-expansion-panel-height: 300px;
$igo-expansion-panel-header-height: $igo-expansion-panel-collapsed-height;

$igo-sidenav-height: 100%;
Expand All @@ -16,7 +16,7 @@ $igo-sidenav-margin-top: 50px;
$igo-sidenav-width-mobile: calc(100% - #{$igo-mobile-min-space-right} - #{$igo-margin});

$igo-toast-panel-collapsed-height: 48px;
$igo-toast-panel-max-height: 329px;
$igo-toast-panel-max-height: 300px;
$igo-toast-panel-width: 30%;

$search-bar-left: calc(#{$igo-icon-size} + #{$igo-margin});
Expand Down
8 changes: 0 additions & 8 deletions src/app/pages/portal/toast-panel/toast-panel.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@

transition: height 280ms cubic-bezier(.4,0,.2,1);
padding: $igo-padding;

@include mobile {
max-height: 40%;
}
}

:host.igo-toast-panel-opened {
height: $igo-toast-panel-max-height;

@include mobile {
height: 40%;
}
}

igo-panel ::ng-deep .igo-panel-header:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/embacle.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"sourceFields": [
{ "name": "waterway", "alias": "Chemin d eau" },
{ "name": "osm_id" },
{ "name": "landuse", "values": ["yes", "no"] }
{ "name": "landuse" }
],
"ogcFilters": {
"enabled": true,
Expand Down
3 changes: 2 additions & 1 deletion src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"close": "Close Menu",
"open": "Open Menu"
},
"IGO": "IGO"
"IGO": "IGO",
"noEntityStore": "No tables available for this dataset"
}
3 changes: 2 additions & 1 deletion src/locale/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"close": "Fermer le menu",
"open": "Menu"
},
"IGO": "IGO"
"IGO": "IGO",
"noEntityStore": "Aucune table disponible pour ce jeu de données"
}

0 comments on commit c0669a8

Please sign in to comment.