Skip to content

Conversation

@Hirobreak
Copy link
Collaborator

  • Showing backup progress in a snackbar

errorTitle: '',
errorInfo: '',
counter: 11
counter: 200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

counter 200 (?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually you change it from 1100 to 11

"exporting_contacts": "Exporting Contacts...",
"saving_contacts": "Saving Contacts...",
"exporting_labels": "Exporting Labels...",
"saving_labels": "Saving Labels...",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but even es.json have to be in english?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. It needs translations.


const customDomains = await exportCustomDomainsTable(accountId);

exportProgress += 100 / PROGRESS_TOTAL_STEPS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

encapsulate this code 🙏🏻

errorTitle: '',
errorInfo: '',
counter: 11
counter: 200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually you change it from 1100 to 11

"exporting_contacts": "Exporting Contacts...",
"saving_contacts": "Saving Contacts...",
"exporting_labels": "Exporting Labels...",
"saving_labels": "Saving Labels...",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. It needs translations.

@Hirobreak
Copy link
Collaborator Author

image

}
return backupSize;
} catch (error) {
console.error(error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge the PR #1467, and then change this to logger.error


backupDone();
} catch (backupErr) {
log(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log function wraps all console logs in the file, I even use it in PR #1467

@danieltigse danieltigse merged commit 6c1b6ba into Criptext:master Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants