-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(add-data): Remove catalogue layers via panel-header buttons
- Loading branch information
1 parent
6c094f2
commit 24f8387
Showing
12 changed files
with
133 additions
and
41 deletions.
There are no files selected for viewing
40 changes: 28 additions & 12 deletions
40
projects/hslayers/components/add-data/add-data.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
<div class="card hs-main-panel overflow-hidden h-100" style="margin-top: 0 !important;" *ngIf="isVisible$ | async" | ||
[ngClass]="panelWidthClass"> | ||
<hs-panel-header name="addData" [panelTabs]="'catalogue,url,file'" | ||
[selectedTab$]="hsAddDataService.datasetSelected"></hs-panel-header> | ||
<div class="card-body" style="overflow-y: auto;" | ||
*ngIf="{selected: hsAddDataService.datasetTypeSelected | async} as dataset"> | ||
<hs-add-data-url *ngIf="dataset.selected === 'url' || dataset.selected === 'OWS'"> | ||
</hs-add-data-url> | ||
<hs-add-data-file *ngIf="dataset.selected === 'file'"> | ||
</hs-add-data-file> | ||
<hs-add-data-catalogue class="h-100 d-block" *ngIf="dataset.selected === 'catalogue'"> | ||
</hs-add-data-catalogue> | ||
</div> | ||
</div> | ||
<ng-container *ngIf="{selected: hsAddDataService.datasetTypeSelected | async} as dataset"> | ||
<hs-panel-header name="addData" [panelTabs]="'catalogue,url,file'" | ||
[selectedTab$]="hsAddDataService.datasetSelected"> | ||
@if(dataset.selected === 'catalogue' && hsAddDataCatalogueService.data.onlyMine){ | ||
<extra-buttons> | ||
<ng-container *ngIf="{enabled: layersAvailable | async} as removal"> | ||
<a class="dropdown-item" (click)="removeMultipleLayers()" [class.disabled]="!removal.enabled"> | ||
<i class="icon-trash"></i> {{'DRAW.removeMultipleLayers' | translateHs }} | ||
</a> | ||
<a class="dropdown-item" (click)="removeAllLayers()" [class.disabled]="!removal.enabled"> | ||
<i class="icon-trash"></i> {{'LAYERMANAGER.removeAllLayers' | translateHs }} | ||
</a> | ||
</ng-container> | ||
|
||
</extra-buttons> | ||
} | ||
</hs-panel-header> | ||
<div class="card-body" style="overflow-y: auto;"> | ||
<hs-add-data-url *ngIf="dataset.selected === 'url' || dataset.selected === 'OWS'"> | ||
</hs-add-data-url> | ||
<hs-add-data-file *ngIf="dataset.selected === 'file'"> | ||
</hs-add-data-file> | ||
<hs-add-data-catalogue class="h-100 d-block" *ngIf="dataset.selected === 'catalogue'"> | ||
</hs-add-data-catalogue> | ||
</div> | ||
</ng-container> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters