Fix locale + fix document loading
This commit is contained in:
parent
4717659bd7
commit
e43c064da7
2 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,8 @@ class HomeScreen extends React.Component {
|
|||
}
|
||||
this.props.initBtns();
|
||||
this.props.initContact(this.props.currentUser);
|
||||
this.props.initDirectories(this.props.locale.value, this.props.currentUser);
|
||||
this.props.initDirectories(this.props.locale, this.props.currentUser);
|
||||
this.props.initDocuments(this.props.locale, this.props.directories.global);
|
||||
|
||||
SplashScreen.hideAsync();
|
||||
}
|
||||
|
|
@ -116,7 +117,6 @@ class HomeScreen extends React.Component {
|
|||
|
||||
openFolder(id) {
|
||||
const folder = this.props.directories.treeview.filter(tmp => tmp.id === id);
|
||||
this.props.initDocuments(this.props.locale, this.props.directories.global);
|
||||
this.props.navigation.navigate('DirectoriesScreen', { folder: folder });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ class SyncScreen extends React.Component {
|
|||
this.props.init();
|
||||
this.props.initUsers();
|
||||
this.props.initContact(this.props.currentUser);
|
||||
this.props.initDirectories(this.props.locale.value, this.props.currentUser);
|
||||
this.props.initDirectories(this.props.locale, this.props.currentUser);
|
||||
this.props.initBtns();
|
||||
if (this.state.forced) {
|
||||
SyncController.setInstalled();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue