mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Changed: StorageResultType to error result code
This commit is contained in:
parent
be3ef15f8e
commit
4a8d516123
33 changed files with 257 additions and 302 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { StorageResultType } from 'Common/Enums';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
|
|
@ -26,9 +24,9 @@ class TwoFactorTestPopupView extends AbstractViewPopup {
|
|||
|
||||
testCodeCommand() {
|
||||
this.testing(true);
|
||||
Remote.testTwoFactor((result, data) => {
|
||||
Remote.testTwoFactor((iError, data) => {
|
||||
this.testing(false);
|
||||
this.codeStatus(StorageResultType.Success === result && data && !!data.Result);
|
||||
this.codeStatus(!iError && data && !!data.Result);
|
||||
|
||||
if (this.koTestedTrigger && this.codeStatus()) {
|
||||
this.koTestedTrigger(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue