Browse Source

Simplifies vscode component registration

main
Eric Amodio 2 years ago
parent
commit
47c302691f
2 changed files with 2 additions and 12 deletions
  1. +1
    -5
      src/webviews/apps/home/home.ts
  2. +1
    -7
      src/webviews/apps/plus/timeline/timeline.ts

+ 1
- 5
src/webviews/apps/home/home.ts View File

@ -17,11 +17,7 @@ export class HomeApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton());
this.$slots = [
document.getElementById('slot1') as HTMLDivElement,

+ 1
- 7
src/webviews/apps/plus/timeline/timeline.ts View File

@ -22,13 +22,7 @@ export class TimelineApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
vsCodeDropdown().register(container, context);
vsCodeOption().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton(), vsCodeDropdown(), vsCodeOption());
this.updateState();
}

Loading…
Cancel
Save