Skip to content

Commit 4dab0b1

Browse files
emersionlouisgreiner
authored andcommitted
hack: disable file imports
1 parent aed88da commit 4dab0b1

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

src/app/view/editor-tools-view-component/editor-tools-view.component.html

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ <h2 class="SummaryTitle">{{ 'app.view.editor-side-view.editor-tools-view-compone
4040
<sbb-icon svgIcon="download-small" aria-hidden="false"></sbb-icon>
4141
</button>
4242
{{ 'app.view.editor-side-view.editor-tools-view-component.export-netzgrafik-as-json' | translate }}
43-
<ng-container *ngIf="getVariantIsWritable()">
43+
<!--
44+
<ng-container *ngIf="getVariantIsWritable()">
4445
<br />
4546
<button
4647
(click)="onLoadButton()"
@@ -57,8 +58,8 @@ <h2 class="SummaryTitle">{{ 'app.view.editor-side-view.editor-tools-view-compone
5758
(change)="onLoad($event)"
5859
/>
5960
{{ 'app.view.editor-side-view.editor-tools-view-component.import-netzgrafik-as-json' | translate }}
60-
</ng-container>
61-
61+
</ng-container>
62+
-->
6263
<br />
6364
<button
6465
(click)="onExportZuglauf()"
@@ -83,30 +84,33 @@ <h2 class="SummaryTitle">{{ 'app.view.editor-side-view.editor-tools-view-compone
8384
</sbb-expansion-panel>
8485
<sbb-expansion-panel [expanded]="false">
8586
<sbb-expansion-panel-header>{{ 'app.view.editor-side-view.editor-tools-view-component.base-data' | translate }}</sbb-expansion-panel-header>
86-
<ng-container *ngIf="getVariantIsWritable()">
87-
<button
88-
(click)="onLoadStammdatenButton()"
89-
[title]="'app.view.editor-side-view.editor-tools-view-component.import-base-data' | translate"
90-
class="TrainrunDialog EditorToolButton"
91-
>
92-
<sbb-icon svgIcon="document-plus-small"></sbb-icon>
93-
</button>
94-
{{ 'app.view.editor-side-view.editor-tools-view-component.import-base-data' | translate }}
95-
<a
96-
href="https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend/blob/main/documentation/CREATE_NODES.md#import-nodes-from-a-semicolon-seperate-value-file-csv"
97-
class="sbb-link link-reset"
98-
target="_blank"
99-
>{{ 'app.view.editor-side-view.editor-tools-view-component.help-csv-data' | translate }}</a
100-
>
101-
<input
102-
hidden
103-
#stammdatenFileInput
104-
type="file"
105-
accept=".csv"
106-
(change)="onLoadStammdaten($event)"
107-
/>
108-
<br />
109-
</ng-container>
87+
88+
<!--
89+
<ng-container *ngIf="getVariantIsWritable()">
90+
<button
91+
(click)="onLoadStammdatenButton()"
92+
[title]="'app.view.editor-side-view.editor-tools-view-component.import-base-data' | translate"
93+
class="TrainrunDialog EditorToolButton"
94+
>
95+
<sbb-icon svgIcon="document-plus-small"></sbb-icon>
96+
</button>
97+
{{ 'app.view.editor-side-view.editor-tools-view-component.import-base-data' | translate }}
98+
<a
99+
href="https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend/blob/main/documentation/CREATE_NODES.md#import-nodes-from-a-semicolon-seperate-value-file-csv"
100+
class="sbb-link link-reset"
101+
target="_blank"
102+
>{{ 'app.view.editor-side-view.editor-tools-view-component.help-csv-data' | translate }}</a
103+
>
104+
<input
105+
hidden
106+
#stammdatenFileInput
107+
type="file"
108+
accept=".csv"
109+
(change)="onLoadStammdaten($event)"
110+
/>
111+
<br />
112+
</ng-container>
113+
-->
110114
<button
111115
(click)="onExportStammdaten()"
112116
[title]="'app.view.editor-side-view.editor-tools-view-component.export-base-data' | translate"

0 commit comments

Comments
 (0)