Skip to content

Commit

Permalink
fix: Set group property in details component to not interfere with lo…
Browse files Browse the repository at this point in the history
…ading of service without layer
  • Loading branch information
FilipLeitner authored and jmacura committed Feb 13, 2024
1 parent ea65154 commit 1a5a394
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<div class="hs-add-url-wms-addas d-flex flex-row justify-content-start align-items-baseline my-2">
<span class="control-label input-group-text">{{'COMMON.addAs' | translateHs }}</span>
<div class="d-flex flex-fill gap-2 justify-content-end align-items-center mx-2 ">
<div class="d-flex flex-fill gap-2 justify-content-end align-items-center">
<div class="btn-group ">
<button type="button" class="btn btn-sm btn-outline-secondary" (click)="setBase(true)"
[ngClass]="{'active':data.base}">
Expand All @@ -34,7 +34,7 @@
</div>
</div>

<button type="button" class="btn w-100 btn-outline-secondary dropdown-toggle dropdown-toggle-split"
<button type="button" class="btn w-100 btn-outline-secondary dropdown-toggle dropdown-toggle-split mb-2"
(click)="advancedPanelVisible = !advancedPanelVisible">
{{'COMMON.advancedOptions' | translateHs }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class HsUrlDetailsComponent implements AfterContentInit {
constructor(public hsAddDataCommonService: HsAddDataCommonService) {}
ngAfterContentInit(): void {
this.data = this.injectedService.data;
if (this.type == 'wms') {
this.data.group = true;
}
this.getDimensionValues = this.hsAddDataCommonService.getDimensionValues;
}

Expand Down
1 change: 0 additions & 1 deletion projects/hslayers/shared/add-data/url/wms.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export class HsUrlWmsService implements HsUrlTypeServiceModel {
trackBy: 'Name',
nameProperty: 'Title',
},
group: true,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class HsLayerManagerMetadataService {
* Helper used in to get usable extent from layers capabilities object
*/
private getCapsExtent(layerObj: any, layerCaps: HsWmsLayer): Extent {
// Extent of selected layer or service in case its missing
// Extent of selected layer or service in case it's missing
let extent =
(layerObj.EX_GeographicBoundingBox || layerObj.BoundingBox) ??
(layerCaps.EX_GeographicBoundingBox || layerCaps.BoundingBox);
Expand Down
1 change: 0 additions & 1 deletion projects/hslayers/src/assets/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@
"Tile": "Dlaždice",
"done": "Hotovo",
"group": "skupina",
"single": "singl",
"separateLayers": "samostatné vrstvy"
},
"COMPOSITIONS": {
Expand Down
1 change: 0 additions & 1 deletion projects/hslayers/src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@
"Tile": "Tile",
"done": "Done",
"group": "group",
"single": "single",
"separateLayers": "separate layers"
},
"COMPOSITIONS": {
Expand Down
1 change: 0 additions & 1 deletion projects/hslayers/src/assets/locales/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@
"Tile": "Dlaždica",
"done": "Hotovo",
"group": "skupina",
"single": "slobodný",
"separateLayers": "samostatné vrstvy"
},
"COMPOSITIONS": {
Expand Down

0 comments on commit 1a5a394

Please sign in to comment.