From 5852caf02bb9d3c58a5b2f2bbfd074e51066a46c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 5 Aug 2024 18:07:29 +0200 Subject: [PATCH] fix: disable links section in node sidebar This is SBB-specific. --- .../editor-node-detail-view.component.html | 2 +- .../editor-node-detail-view.component.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.html b/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.html index ac4ce14e..f31c742e 100644 --- a/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.html +++ b/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.html @@ -273,7 +273,7 @@

- + {{ 'app.view.editor-side-view.editor-node-detail-view.links' | translate }}
  • diff --git a/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.ts b/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.ts index 2482921d..011c710d 100644 --- a/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.ts +++ b/src/app/view/editor-side-view/editor-node-detail-view/editor-node-detail-view.component.ts @@ -22,6 +22,7 @@ import {LabelService} from "../../../services/data/label.serivce"; import {LabelGroupService} from "../../../services/data/labelgroup.service"; import {SbbChipEvent, SbbChipInputEvent} from "@sbb-esta/angular/chips"; import {COMMA, ENTER} from "@angular/cdk/keycodes"; +import {environment} from "../../../../environments/environment"; interface NodeProperties { nodeId: number; @@ -59,6 +60,8 @@ export class EditorNodeDetailViewComponent implements OnInit, OnDestroy { readonly separatorKeysCodes = [ENTER, COMMA]; nodeLabelsAutoCompleteOptions: string[] = []; + readonly disableBackend = environment.disableBackend; + private destroyed = new Subject(); private isLabelBeingEdited = false;