integrate taskViewModel

This commit is contained in:
marlon-erler
2024-07-24 01:19:44 +02:00
parent 5a34a54273
commit bd880dfa06
8 changed files with 195 additions and 71 deletions
+3 -3
View File
@@ -77,21 +77,21 @@ export default class ChatViewModel {
// init
constructor(
chatModel: ChatModel,
storageModel: StorageModel,
chatModel: ChatModel,
settingsViewModel: SettingsViewModel,
chatListViewModel: ChatListViewModel
) {
// models
this.chatModel = chatModel;
this.storageModel = storageModel;
this.chatModel = chatModel;
this.settingsViewModel = settingsViewModel;
this.chatListViewModel = chatListViewModel;
// page viewModels
this.taskPageViewModel = new TaskPageViewModel(
this.chatModel.fileModel.taskModel,
this.storageModel,
this.chatModel.fileModel.taskModel,
this
);
this.messagePageViewModel = new MessagePageViewModel(this);