Skip to content

Commit

Permalink
Merge pull request #2 from raskin/feature/SOL-825
Browse files Browse the repository at this point in the history
Add link to wp-profil in sidebar
  • Loading branch information
zesinho authored Nov 26, 2019
2 parents d61fc62 + 08f1ac8 commit 049cdfc
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 8 deletions.
4 changes: 3 additions & 1 deletion app/i18n/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,7 @@ export default {
Version_no: 'Version: {{version}}',
You_will_not_be_able_to_recover_this_message: 'Sie können diese Nachricht nicht wiederherstellen!',
Change_Language: 'Sprache ändern',
Crash_report_disclaimer: 'Wir verfolgen niemals den Inhalt Ihrer Chats. Der Crash-Report enthält nur für uns relevante Informationen in der Reihenfolge '
Crash_report_disclaimer: 'Wir verfolgen niemals den Inhalt Ihrer Chats. Der Crash-Report enthält nur für uns relevante Informationen in der Reihenfolge ',
Community_Profile: 'Mein Planet',
Chat_Profile_Image: 'Chat-Profilbild'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,5 +438,7 @@ export default {
Version_no: 'Version: {{version}}',
You_will_not_be_able_to_recover_this_message: 'You will not be able to recover this message!',
Change_Language: 'Change Language',
Crash_report_disclaimer: 'We never track the content of your chats. The crash report only contains relevant information for us in order to identify problems and fix it.'
Crash_report_disclaimer: 'We never track the content of your chats. The crash report only contains relevant information for us in order to identify problems and fix it.',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,7 @@ export default {
you_were_mentioned: 'vous avez été mentionné',
you: 'vous',
You: 'Vous',
You_will_not_be_able_to_recover_this_message: 'Vous ne serez pas en mesure de récupérer ce message!'
You_will_not_be_able_to_recover_this_message: 'Vous ne serez pas en mesure de récupérer ce message!',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/pt-BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,7 @@ export default {
you: 'você',
You: 'Você',
You_need_to_access_at_least_one_RocketChat_server_to_share_something: 'Você precisa acessar ao menos um servidor Rocket.Chat para compartilhar.',
You_will_not_be_able_to_recover_this_message: 'Você não será capaz de recuperar essa mensagem!'
You_will_not_be_able_to_recover_this_message: 'Você não será capaz de recuperar essa mensagem!',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/pt-PT.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,7 @@ export default {
you_were_mentioned: 'você foi mencionado',
you: 'você',
You: 'Você',
You_will_not_be_able_to_recover_this_message: 'Você será incapaz de recuperar esta mensagem!'
You_will_not_be_able_to_recover_this_message: 'Você será incapaz de recuperar esta mensagem!',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,7 @@ export default {
you_were_mentioned: 'вы были упомянуты',
You_will_not_be_able_to_recover_this_message: 'Вы не сможете восстановить это сообщение!',
you: 'вы',
Your_server: 'Ваш сервер'
Your_server: 'Ваш сервер',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
4 changes: 3 additions & 1 deletion app/i18n/locales/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,5 +346,7 @@ export default {
you_were_mentioned: '你被提到了',
You_will_not_be_able_to_recover_this_message: '您将无法恢复此消息!',
you: '你',
Your_server: '你的服务器'
Your_server: '你的服务器',
Community_Profile: 'My Planet',
Chat_Profile_Image: 'Chat Profil Image'
};
13 changes: 12 additions & 1 deletion app/views/SidebarView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import SidebarItem from './SidebarItem';
import { COLOR_TEXT } from '../../constants/colors';
import database from '../../lib/database';
import { animateNextTransition } from '../../utils/layoutAnimation';
import openLink from '../../utils/openLink';

const keyExtractor = item => item.id;

Expand Down Expand Up @@ -149,6 +150,10 @@ class Sidebar extends Component {
logout();
}

onPressCommunityProfile = () => {
openLink('https://app.milchjugend.ch/members/me');
}

sidebarNavigate = (route) => {
const { navigation } = this.props;
navigation.navigate(route);
Expand Down Expand Up @@ -193,7 +198,13 @@ class Sidebar extends Component {
current={activeItemKey === 'ChatsStack'}
/>
<SidebarItem
text={I18n.t('Profile')}
text={I18n.t('Community_Profile')}
left={<CustomIcon name='discover' size={20} color={COLOR_TEXT} />}
onPress={this.onPressCommunityProfile}
testID='sidebar-community-profile'
/>
<SidebarItem
text={I18n.t('Chat_Profile_Image')}
left={<CustomIcon name='user' size={20} color={COLOR_TEXT} />}
onPress={() => this.sidebarNavigate('ProfileView')}
testID='sidebar-profile'
Expand Down

0 comments on commit 049cdfc

Please sign in to comment.