forked from jsnbuchanan/crowd-funder-for-time-pwa
doc: Add comment about similar code.
This commit is contained in:
@@ -168,6 +168,8 @@ export default class DataExportSection extends Vue {
|
|||||||
* @throws {Error} If export fails
|
* @throws {Error} If export fails
|
||||||
*/
|
*/
|
||||||
public async exportDatabase(): Promise<void> {
|
public async exportDatabase(): Promise<void> {
|
||||||
|
// Note that similar code is in ContactsView.vue exportContactData()
|
||||||
|
|
||||||
if (this.isExporting) {
|
if (this.isExporting) {
|
||||||
return; // Prevent multiple simultaneous exports
|
return; // Prevent multiple simultaneous exports
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1296,6 +1296,7 @@ export default class ContactsView extends Vue {
|
|||||||
* Uses platform service to handle platform-specific export logic
|
* Uses platform service to handle platform-specific export logic
|
||||||
*/
|
*/
|
||||||
private async exportContactData(): Promise<void> {
|
private async exportContactData(): Promise<void> {
|
||||||
|
// Note that similar code is in DataExportSection.vue exportDatabase()
|
||||||
try {
|
try {
|
||||||
// Fetch all contacts from database
|
// Fetch all contacts from database
|
||||||
const allContacts = await this.$contacts();
|
const allContacts = await this.$contacts();
|
||||||
|
|||||||
Reference in New Issue
Block a user