Skip to content

Commit

Permalink
fix: Disable 'Save current map' button when Save map panel is not ena…
Browse files Browse the repository at this point in the history
…bled
  • Loading branch information
FilipLeitner authored and jmacura committed Feb 9, 2024
1 parent b83b696 commit 2668fe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[hidden]="(isVisible$ | async) === false" *ngIf="{layman: hsCommonLaymanService.layman$ | async } as ctx">
<div class="hs-compositions-header">
<hs-panel-header name="composition_browser" [panelTabs]="'COMPOSITIONS'">
<button mainButton class="btn btn-sm btn-outline-primary border-0 align-items-center d-flex gap-2"
<button mainButton [disabled]="!hsConfig.panelsEnabled['saveMap']"
class="btn btn-sm btn-outline-primary border-0 align-items-center d-flex gap-2"
(click)="openSaveMapPanel()"> {{'PANEL_HEADER.SAVECOMPOSITION' | translateHs}}
<i class="glyphicon icon-save-floppy"></i>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class HsCompositionsComponent
private hsCompositionsService: HsCompositionsService,
private hsCompositionsParserService: HsCompositionsParserService,
public hsLayoutService: HsLayoutService,
private hsConfig: HsConfig,
public hsConfig: HsConfig,
private hsCompositionsMapService: HsCompositionsMapService,
private hsDialogContainerService: HsDialogContainerService,
public hsCompositionsCatalogueService: HsCompositionsCatalogueService,
Expand Down

0 comments on commit 2668fe3

Please sign in to comment.