Skip to content

Commit

Permalink
feat: add ISD file extension (#1351)
Browse files Browse the repository at this point in the history
* Feat: Added ISD file extensions

* Feat: Added ISD File extensions
  • Loading branch information
pascalwilbrink authored Nov 2, 2023
1 parent 83d1d61 commit 1c2ef60
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/open-scd/src/menu/ImportIEDs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export default class ImportingIedPlugin extends LitElement {
return html`<input multiple @change=${(event: Event) => {
this.onLoadFiles(event);
(<HTMLInputElement>event.target).value = '';
}} id="importied-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid,.icd" type="file"></input>`;
}} id="importied-plugin-input" accept=".sed,.scd,.ssd,.isd,.iid,.cid,.icd" type="file"></input>`;
}

protected buildIedSelection(importDoc: XMLDocument, fileName: string): void {
Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/menu/Merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class MergePlugin extends LitElement {
return html`<input @click=${(event: MouseEvent) =>
((<HTMLInputElement>event.target).value = '')} @change=${
this.mergeDoc
} id="merge-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid,.icd" type="file"></input>`;
} id="merge-plugin-input" accept=".sed,.scd,.ssd,.isd,.iid,.cid,.icd" type="file"></input>`;
}

static styles = css`
Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/menu/OpenProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class OpenProjectPlugin extends LitElement {
return html`<input @click=${(event: MouseEvent) =>
((<HTMLInputElement>event.target).value = '')} @change=${
this.openDoc
} id="open-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid,.icd" type="file"></input>`;
} id="open-plugin-input" accept=".sed,.scd,.ssd,.isd,.iid,.cid,.icd" type="file"></input>`;
}

static styles = css`
Expand Down
7 changes: 3 additions & 4 deletions packages/open-scd/src/menu/UpdateSubstation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ export default class UpdateSubstationPlugin extends LitElement {

render(): TemplateResult {
return html`<input @click=${(event: MouseEvent) =>
((<HTMLInputElement>event.target).value = '')} @change=${(e: Event) =>
this.updateSubstation(
e
)} id="update-substation-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid" type="file"></input>`;
((<HTMLInputElement>event.target).value = '')}
@change=${this.updateSubstation}
id="update-substation-plugin-input" accept=".sed,.scd,.ssd,.iid,.cid" type="file"></input>`;
}

static styles = css`
Expand Down

0 comments on commit 1c2ef60

Please sign in to comment.