Renter allowance changes
This commit is contained in:
@@ -51,6 +51,12 @@
|
||||
},
|
||||
setUploadCost: (currency)=> {
|
||||
setInnerText('ID_Renter_EstimatedUploadCost', currency);
|
||||
},
|
||||
setAllowance: (allowance)=> {
|
||||
setInnerText('ID_RenterSetFunds', allowance.Funds);
|
||||
setInnerText('ID_RenterSetHosts', allowance.Hosts);
|
||||
setInnerText('ID_RenterSetPeriod', allowance.Period);
|
||||
setInnerText('ID_RenterSetRenewWindow', allowance.RenewWindowInBlocks);
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -147,7 +153,11 @@
|
||||
function _shutdown() {
|
||||
window.appActions.shutdown();
|
||||
}
|
||||
|
||||
|
||||
function _setRenterAllowance(allowance) {
|
||||
window.appActions.setRenterAllowance(allowance);
|
||||
}
|
||||
|
||||
return {
|
||||
createWallet: _createWallet,
|
||||
mountDrive: _mountDrive,
|
||||
@@ -155,7 +165,8 @@
|
||||
stopApp: _stopApp,
|
||||
unlockWallet: _unlockWallet,
|
||||
unmountDrive: _unmountDrive,
|
||||
shutdown: _shutdown
|
||||
shutdown: _shutdown,
|
||||
setRenterAllowance: _setRenterAllowance
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -236,6 +247,7 @@
|
||||
}
|
||||
|
||||
function handleRenterEditSettings() {
|
||||
|
||||
setMainWindow('renter_settings_window');
|
||||
const cancelButton = document.getElementById('ID_RenterSettingsCancel');
|
||||
cancelButton.onclick = ()=> {
|
||||
|
Reference in New Issue
Block a user