diff --git a/htdocs/index.html b/htdocs/index.html index f6e4c89..cfded50 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -199,13 +199,23 @@
-

Upload Progress back

+

Upload Progress back

+
+
+

Send to Address

+

+

Send Amount max

+

+ + +
+
\ No newline at end of file diff --git a/htdocs/js/index.js b/htdocs/js/index.js index 9c2078f..145bb4c 100644 --- a/htdocs/js/index.js +++ b/htdocs/js/index.js @@ -330,17 +330,16 @@ } function handleRenterUploads() { - setMainWindow('upload_progress_window'); - const okButton = document.getElementById('ID_RenterUploadsOk'); okButton.onclick = () => { okButton.onclick = null; beginMainApplication(false); }; + + setMainWindow('upload_progress_window'); } function handleSiaEditSettings() { - setMainWindow('sia_settings_window'); const cancelButton = document.getElementById('ID_SiaSettingsCancel'); cancelButton.onclick = () => { cancelButton.onclick = null; @@ -372,15 +371,39 @@ } }); }; + setMainWindow('sia_settings_window'); + } + + function handleWalletSend() { + const saveButton = document.getElementById('ID_SendOK'); + const cancelButton = document.getElementById('ID_SendCancel'); + cancelButton.onclick = () => { + cancelButton.onclick = null; + saveButton.onclick = null; + beginMainApplication(false); + }; + + saveButton.onclick = () => { + cancelButton.onclick = null; + saveButton.onclick = null; + beginMainApplication(false); + }; + setMainWindow('send_window'); } function beginMainApplication(checkAutoMount) { - setMainWindow('app_window'); const settingsEditLink = document.getElementById('ID_Sia_Settings_Edit'); settingsEditLink.onclick = () => { settingsEditLink.onclick = null; handleSiaEditSettings(); }; + + const sendLink = document.getElementById('ID_Wallet_Send'); + sendLink.onclick = () => { + sendLink.onclick = null; + handleWalletSend(); + }; + const renterEditLink = document.getElementById('ID_Renter_Edit'); renterEditLink.onclick = () => { renterEditLink.onclick = null; @@ -430,6 +453,7 @@ if (checkAutoMount) { AppActions.autoMountDrive( ); } + setMainWindow('app_window'); } function handleRenterEditSettings() { @@ -495,7 +519,6 @@ } function manualUnlockWallet() { - setMainWindow('unlock_window'); const unlockButton = document.getElementById('ID_UnlockWalletButton'); unlockButton.onclick = () => { unlockButton.onclick = null; @@ -515,6 +538,7 @@ password.value = ''; } }; + setMainWindow('unlock_window'); } function handleUnlockWallet() { @@ -536,17 +560,16 @@ } function handleWalletCreated(seed) { - setMainWindow('wallet_created_window'); document.getElementById('ID_WalletSeed').innerText = seed; const button = document.getElementById('ID_WalletCreatedButton'); button.onclick = () => { button.onclick = null; handleUnlockWallet(); }; + setMainWindow('wallet_created_window'); } function handleCreateWallet() { - setMainWindow('create_window'); const createButton = document.getElementById('ID_CreateWalletButton'); createButton.onclick = () => { createButton.onclick = null; @@ -560,6 +583,7 @@ } }); }; + setMainWindow('create_window'); } function reloadApplication(checkAutoMount) {