Skip to content

Commit e607fb8

Browse files
Remove more of the dialog panel
1 parent 7e2c202 commit e607fb8

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

kernel/src/components/Dialog.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ export class Dialog {
2727
const header = this.createHeader();
2828
const optionsContainer = this.createOptionsContainer();
2929

30-
// this.connectCard = new ConnectCard(
31-
// {
32-
// action: 'connect',
33-
// icon: '🔌',
34-
// title: 'Connect Device',
35-
// description: 'Connect to RedBoard via serial',
36-
// color: 'var(--ui-navy)'
37-
// },
38-
// props.serviceContainer.deviceService);
3930

4031
this.flashCard = new FlashCard({
4132
action: 'flash',

kernel/src/panel.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class WelcomePanel {
8989
private element: HTMLDivElement;
9090

9191
private minimizedPanel: MinimizedPanel;
92-
private dialogPanel: DialogPanel;
92+
// private dialogPanel: DialogPanel;
9393

9494
constructor(private serviceContainer: ServiceContainer) {
9595

@@ -112,14 +112,14 @@ export default class WelcomePanel {
112112
const minimizedButton = new MinimizedButton(() => this.show());
113113
this.minimizedPanel = new MinimizedPanel(minimizedButton);
114114

115-
const dialog = new Dialog({
116-
closeDialog: () => this.hide(),
117-
serviceContainer: this.serviceContainer,
118-
});
119-
this.dialogPanel = new DialogPanel(dialog);
115+
// const dialog = new Dialog({
116+
// closeDialog: () => this.hide(),
117+
// serviceContainer: this.serviceContainer,
118+
// });
119+
// this.dialogPanel = new DialogPanel(dialog);
120120

121121
this.element.appendChild(this.minimizedPanel.getElement());
122-
this.element.appendChild(this.dialogPanel.getElement());
122+
// this.element.appendChild(this.dialogPanel.getElement());
123123

124124
document.addEventListener('deviceConnected', (event: Event) => {
125125
const customEvent = event as CustomEvent;
@@ -163,12 +163,12 @@ export default class WelcomePanel {
163163
this.element.style.transition = 'opacity 0.3s ease-in-out';
164164
this.element.style.opacity = '1';
165165

166-
this.dialogPanel.show();
166+
// this.dialogPanel.show();
167167
this.minimizedPanel.hide();
168168
}
169169

170170
hide(): void {
171-
this.dialogPanel.hide();
171+
// this.dialogPanel.hide();
172172
this.minimizedPanel.show();
173173
}
174174
}

0 commit comments

Comments
 (0)