diff --git a/ComApp/src/App/Views/HomeScreen.js b/ComApp/src/App/Views/HomeScreen.js index 6e395ed..7c0ffff 100644 --- a/ComApp/src/App/Views/HomeScreen.js +++ b/ComApp/src/App/Views/HomeScreen.js @@ -77,6 +77,7 @@ class HomeScreen extends React.Component { {this.renderBtns()} { this.props.initDocuments(this.props.locale, this.props.directories.global); this.props.navigation.navigate('OnlyVideosScreen'); @@ -85,7 +86,7 @@ class HomeScreen extends React.Component { {i18n.t('global.videos')} - this.props.navigation.navigate('ContactScreen')} style={styles.button}> + this.props.navigation.navigate('ContactScreen')} style={styles.button}> {i18n.t('global.contacts')} @@ -102,7 +103,7 @@ class HomeScreen extends React.Component { let names = JSON.parse(item.name); let name = (locale in names) ? names[locale] : names.fr; return ( - this.openFolder(item.id)} style={styles.button}> + this.openFolder(item.id)} style={styles.button}> {name} diff --git a/ComApp/src/App/Views/SyncScreen.js b/ComApp/src/App/Views/SyncScreen.js index ad05390..955dacb 100644 --- a/ComApp/src/App/Views/SyncScreen.js +++ b/ComApp/src/App/Views/SyncScreen.js @@ -175,7 +175,7 @@ class SyncScreen extends React.Component { resDocuments.forEach(document => { Document.update(document); }); - this.downloadDocuments(resDocuments, toDelete); + this.downloadDocuments(Document.getAll(), toDelete); // End this.setState({ txtStep: i18n.t('sync_s.update_completed') + '.', processing: false }); } @@ -275,8 +275,7 @@ class SyncScreen extends React.Component { ') ...', }); try { - //console.log(endpoint + doc.uuid + "." + doc.type); - const { uri } = await this.downloadResumable( + await this.downloadResumable( endpoint + doc.uuid + "." + doc.type, doc.uuid, doc.type, @@ -296,7 +295,7 @@ class SyncScreen extends React.Component { } } - finishSync() { + finishSync(version) { this.props.init(); this.props.initUsers(); this.props.initContact(this.props.currentUser);