Skip to content

Commit

Permalink
Feat: Moved hosting into OpenSCD class
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwilbrink committed Feb 14, 2024
1 parent 4960d04 commit d051c91
Show file tree
Hide file tree
Showing 5 changed files with 362 additions and 378 deletions.
4 changes: 2 additions & 2 deletions packages/open-scd/src/addons/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ export class OscdSettings extends LitElement {
}

render(): TemplateResult {
return html`<mwc-dialog
return html` <slot></slot>
<mwc-dialog
id="settings"
heading="${translate('settings.title')}"
@closing=${this.onClosing}
Expand Down Expand Up @@ -453,7 +454,6 @@ export class OscdSettings extends LitElement {
${translate('save')}
</mwc-button>
</mwc-dialog>
<slot></slot>
${getTheme(this.settings.theme)}`;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/addons/Waiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class OscdWaiter extends LitElement {
}

render(): TemplateResult {
return html` <slot></slot>
return html`<slot></slot>
<mwc-linear-progress .closed=${!this.waiting} indeterminate>
</mwc-linear-progress>`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/editors/substation/zeroline-pane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import { selectGseControlWizard } from '../../wizards/gsecontrol.js';
import { emptyWizard, wizards } from '../../wizards/wizard-library.js';
import { getAttachedIeds } from './foundation.js';
import { selectSampledValueControlWizard } from '../../wizards/sampledvaluecontrol.js';
import { Settings } from '../../Setting.js';
import { selectReportControlWizard } from '../../wizards/reportcontrol.js';

import { SCLTag, tags } from '../../foundation.js';
import { Settings } from '../../addons/Settings.js';

function shouldShowIEDs(): boolean {
return localStorage.getItem('showieds') === 'on';
Expand Down
Loading

0 comments on commit d051c91

Please sign in to comment.