cleanup
This commit is contained in:
@@ -4,7 +4,6 @@ import * as React from "bloatless-react";
|
||||
|
||||
import { ChatMessage, ChatMessageStatus } from "../../Model/Chat/chatModel";
|
||||
|
||||
import ChatViewModel from "./chatViewModel";
|
||||
import MessagePageViewModel from "../Pages/messagePageViewModel";
|
||||
|
||||
export default class ChatMessageViewModel {
|
||||
|
||||
@@ -62,7 +62,7 @@ export default class ConnectionViewModel {
|
||||
this.updatePreviousAddresses();
|
||||
};
|
||||
|
||||
// view methods
|
||||
// view
|
||||
showConnectionModal = (): void => {
|
||||
this.isShowingConnectionModal.value = true;
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ export default class SettingsViewModel {
|
||||
this.usernameInput.value == this.settingsModel.username
|
||||
);
|
||||
|
||||
// set
|
||||
// methods
|
||||
setName = (): void => {
|
||||
this.settingsModel.setName(this.usernameInput.value);
|
||||
this.username.value = this.settingsModel.username;
|
||||
|
||||
@@ -35,7 +35,7 @@ export default class StorageViewModel {
|
||||
this.didMakeChanges.value = true;
|
||||
};
|
||||
|
||||
// view methods
|
||||
// view
|
||||
showStorageModal = (): void => {
|
||||
this.isShowingStorageModal.value = true;
|
||||
};
|
||||
|
||||
@@ -33,7 +33,6 @@ export default class MessagePageViewModel {
|
||||
}
|
||||
};
|
||||
|
||||
// messaging
|
||||
sendMessage = (): void => {
|
||||
if (this.cannotSendMessage.value == true) return;
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ export default class SettingsPageViewModel {
|
||||
};
|
||||
|
||||
// load
|
||||
loadViewRelevantData = (): void => {
|
||||
loadListRelevantData = (): void => {
|
||||
this.primaryChannel.value =
|
||||
this.chatViewModel.chatModel.info.primaryChannel;
|
||||
|
||||
@@ -119,6 +119,6 @@ export default class SettingsPageViewModel {
|
||||
// init
|
||||
constructor(chatViewModel: ChatViewModel) {
|
||||
this.chatViewModel = chatViewModel;
|
||||
this.loadViewRelevantData();
|
||||
this.loadListRelevantData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user