integrate context with window.history API

This commit is contained in:
marlon-erler
2026-04-14 17:19:35 +00:00
parent 77fac64879
commit 9e9ede570d
13 changed files with 150 additions and 90 deletions
@@ -164,11 +164,15 @@ export default class FileTransferViewModel extends Context {
this.coreViewModel.fileTransferModel.prepareToReceive(transferData);
};
hideModal = (): void => {
// exit
close = (): void => {
this.coreViewModel.closeContext(this.contextId);
this.presentedModal.value = undefined;
};
handleContextClose = (): void => {
this.presentedModal.value = undefined;
}
// init
constructor(public readonly coreViewModel: CoreViewModel) {
super("file-transfer");
@@ -184,7 +188,7 @@ export default class FileTransferViewModel extends Context {
);
// keystrokes
this.registerKeyStroke(CommonKeys.CloseOrCancel, this.hideModal);
this.registerKeyStroke(CommonKeys.CloseOrCancel, this.close);
}
}