Skip to content

Commit 0ca961d

Browse files
committed
fix: Set group property in details component to not interfere with loading of service without layer
1 parent 2d77685 commit 0ca961d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

projects/hslayers/components/add-data/common/url/details/details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

37-
<button type="button" class="btn w-100 btn-outline-secondary dropdown-toggle dropdown-toggle-split"
37+
<button type="button" class="btn w-100 btn-outline-secondary dropdown-toggle dropdown-toggle-split mb-2"
3838
(click)="advancedPanelVisible = !advancedPanelVisible">
3939
{{'COMMON.advancedOptions' | translateHs }}
4040
</button>

projects/hslayers/components/add-data/common/url/details/details.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export class HsUrlDetailsComponent implements AfterContentInit {
2323
constructor(public hsAddDataCommonService: HsAddDataCommonService) {}
2424
ngAfterContentInit(): void {
2525
this.data = this.injectedService.data;
26+
if (this.type == 'wms') {
27+
this.data.group = true;
28+
}
2629
this.getDimensionValues = this.hsAddDataCommonService.getDimensionValues;
2730
}
2831

projects/hslayers/shared/add-data/url/wms.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export class HsUrlWmsService implements HsUrlTypeServiceModel {
7070
trackBy: 'Name',
7171
nameProperty: 'Title',
7272
},
73-
group: true,
7473
};
7574
}
7675

0 commit comments

Comments
 (0)