diff --git a/js/src/common/components/Navigation.js b/js/src/common/components/Navigation.js index 5de2671d0..559cfb2f3 100644 --- a/js/src/common/components/Navigation.js +++ b/js/src/common/components/Navigation.js @@ -11,7 +11,7 @@ import LinkButton from './LinkButton'; * If the app has a pane, it will also include a 'pin' button which toggles the * pinned state of the pane. * - * Accepts the following props: + * Accepts the following attrs: * * - `className` The name of a class to set on the root element. * - `drawer` Whether or not to show a button to toggle the app's drawer if @@ -23,7 +23,7 @@ export default class Navigation extends Component { return (
@@ -32,13 +32,6 @@ export default class Navigation extends Component { ); } - config(isInitialized, context) { - // Since this component is 'above' the content of the page (that is, it is a - // part of the global UI that persists between routes), we will flag the DOM - // to be retained across route changes. - context.retain = true; - } - /** * Get the back button. * @@ -88,7 +81,7 @@ export default class Navigation extends Component { * @protected */ getDrawerButton() { - if (!this.props.drawer) return ''; + if (!this.attrs.drawer) return ''; const { drawer } = app; const user = app.session.user;