Skip to content

Commit

Permalink
fix: disable links section in node sidebar
Browse files Browse the repository at this point in the history
This is SBB-specific.
  • Loading branch information
emersion authored and Uriel-Sautron committed Sep 19, 2024
1 parent 9ead0bf commit 5852caf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h2 class="SummaryTitle">
</tr>
</table>
</sbb-expansion-panel>
<sbb-expansion-panel [expanded]="false">
<sbb-expansion-panel [expanded]="false" *ngIf="!disableBackend">
<sbb-expansion-panel-header>{{ 'app.view.editor-side-view.editor-node-detail-view.links' | translate }}</sbb-expansion-panel-header>
<ul>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,6 +60,8 @@ export class EditorNodeDetailViewComponent implements OnInit, OnDestroy {
readonly separatorKeysCodes = [ENTER, COMMA];
nodeLabelsAutoCompleteOptions: string[] = [];

readonly disableBackend = environment.disableBackend;

private destroyed = new Subject<void>();
private isLabelBeingEdited = false;

Expand Down

0 comments on commit 5852caf

Please sign in to comment.