jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

MN add count down to spinner? #270

Closed jaros1 closed 6 years ago

jaros1 commented 6 years ago

Could use send_message timeout interval for a spinner countdown in UI.

jaros1 commented 6 years ago

Maybe as a extra parameter (object or callback function) to send_message function. wait for response file updates timeout counter in object or callback function to update spinner count. Now using 500 ms interval in message_demon (demon is running) and 250 ms interval in dbQuery loop (demon is not running). Best only to update counter in angularJS UI once every second. Must be a callback function as $scope.$apply() call is required for angularJS refresh

jaros1 commented 6 years ago

add spinner countdown (timeout - elapsed time)

jaros1 commented 6 years ago

Added countdown_cb options to MoneyNetworkAPI.send_message call and added spinner_countdown to send new chat msg with money transactions

jaros1 commented 6 years ago

Added countdown_cb to approve incoming money transaction. Tested OK