Fix locale + fix document loading

This commit is contained in:
Vincent BRIDIER 2023-01-04 12:40:33 +01:00
parent 4717659bd7
commit e43c064da7
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
2 changed files with 3 additions and 3 deletions

View file

@ -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 });
}
}

View file

@ -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();