Commit bc37ce4a authored by Cyrille Bollu's avatar Cyrille Bollu
Browse files

Resets rembered board+stack when navigating to the AllBoards component


Signed-off-by: default avatarCyrille Bollu <cyrille@bollu.be>
parent 2f4ddc20
Pipeline #455002 passed with stage
in 30 seconds
......@@ -10,6 +10,7 @@ import { ActionSheetIOS, Pressable, RefreshControl, ScrollView, Text, TextInput,
import { DraxProvider, DraxView } from 'react-native-drax';
import axios from 'axios';
import { initialWindowMetrics } from 'react-native-safe-area-context';
import { HeaderBackButton } from '@react-navigation/elements';
import { i18n } from '../i18n/i18n.js';
// Component that display a board's cards, grouped by stack
......@@ -67,7 +68,17 @@ class BoardDetails extends React.Component {
// Setup page's header bar
this.props.navigation.setOptions({
headerTitle: 'Board details',
headerRight: () => (<AppMenu/>)
headerRight: () => (<AppMenu/>),
headerLeft: () => (
<HeaderBackButton
label = 'All boards'
labelVisible = {true}
onPress = {() => {
AsyncStorage.removeItem('navigation')
this.props.navigation.navigate('AllBoards')
}}
/>
)
})
// Gets board details if not yet done
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment