add weechat

This commit is contained in:
Bruno Windels
2020-12-01 19:00:26 +01:00
parent 64657c196a
commit cf489284c9
4 changed files with 217 additions and 2 deletions
+2 -2
View File
@@ -18,6 +18,7 @@ import {Link} from "./Link.js";
import {ViewModel} from "./utils/ViewModel.js";
import {PreviewViewModel} from "./preview/PreviewViewModel.js";
import {Element} from "./client/clients/Element.js";
import {Weechat} from "./client/clients/Weechat.js";
import {Platform} from "./client/Platform.js";
export class RootViewModel extends ViewModel {
@@ -30,11 +31,10 @@ export class RootViewModel extends ViewModel {
_updateChildVMs(oldLink) {
if (this.link) {
if (!oldLink || !oldLink.equals(this.link)) {
const element = new Element();
this.previewViewModel = new PreviewViewModel(this.childOptions({
link: this.link,
consentedServers: this.link.servers,
clients: [element]
clients: [new Element(), new Weechat()]
}));
this.previewViewModel.load();
}