make removing chats dynamic
This commit is contained in:
Vendored
+1
-2
@@ -1309,7 +1309,6 @@
|
|||||||
this.primaryChannelInput.value
|
this.primaryChannelInput.value
|
||||||
);
|
);
|
||||||
this.primaryChannel.value = this.chatViewModel.chatModel.info.primaryChannel;
|
this.primaryChannel.value = this.chatViewModel.chatModel.info.primaryChannel;
|
||||||
this.chatViewModel.chatListViewModel.updateIndices();
|
|
||||||
};
|
};
|
||||||
addSecondaryChannel = () => {
|
addSecondaryChannel = () => {
|
||||||
this.secondaryChannels.add(this.newSecondaryChannelInput.value);
|
this.secondaryChannels.add(this.newSecondaryChannelInput.value);
|
||||||
@@ -1339,7 +1338,7 @@
|
|||||||
remove = () => {
|
remove = () => {
|
||||||
this.chatViewModel.close();
|
this.chatViewModel.close();
|
||||||
this.chatViewModel.chatModel.delete();
|
this.chatViewModel.chatModel.delete();
|
||||||
this.chatViewModel.chatListViewModel.loadChats();
|
this.chatViewModel.chatListViewModel.untrackChat(this.chatViewModel);
|
||||||
};
|
};
|
||||||
// load
|
// load
|
||||||
loadListRelevantData = () => {
|
loadListRelevantData = () => {
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ export default class SettingsPageViewModel {
|
|||||||
);
|
);
|
||||||
this.primaryChannel.value =
|
this.primaryChannel.value =
|
||||||
this.chatViewModel.chatModel.info.primaryChannel;
|
this.chatViewModel.chatModel.info.primaryChannel;
|
||||||
this.chatViewModel.chatListViewModel.updateIndices();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
addSecondaryChannel = (): void => {
|
addSecondaryChannel = (): void => {
|
||||||
@@ -80,7 +79,7 @@ export default class SettingsPageViewModel {
|
|||||||
remove = (): void => {
|
remove = (): void => {
|
||||||
this.chatViewModel.close();
|
this.chatViewModel.close();
|
||||||
this.chatViewModel.chatModel.delete();
|
this.chatViewModel.chatModel.delete();
|
||||||
this.chatViewModel.chatListViewModel.loadChats();
|
this.chatViewModel.chatListViewModel.untrackChat(this.chatViewModel);
|
||||||
};
|
};
|
||||||
|
|
||||||
// load
|
// load
|
||||||
|
|||||||
Reference in New Issue
Block a user