change AbstractFetchRemote with a better structure

This commit is contained in:
djmaze 2021-12-02 23:15:24 +01:00
parent 0d809dd574
commit 792fee547a
26 changed files with 265 additions and 723 deletions

View file

@ -56,7 +56,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
AccountUserStore.loading(true);
event.preventDefault();
event.stopPropagation();
Remote.defaultRequest(
Remote.request('AccountSwitch',
(iError/*, oData*/) => {
if (iError) {
AccountUserStore.loading(false);
@ -86,7 +86,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
// rl.route.reload();
location.reload();
}
}, 'AccountSwitch', {Email:account.email}
}, {Email:account.email}
);
}
return true;