1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

Removed outdated config method from primary and secondary header

This commit is contained in:
Alexander Skvortsov
2020-04-29 18:01:00 -04:00
committed by David Sevilla Martín
parent 532e866760
commit c6062019c5
2 changed files with 0 additions and 14 deletions

View File

@@ -11,13 +11,6 @@ export default class HeaderPrimary extends Component {
return <ul className="Header-controls">{listItems(this.items().toArray())}</ul>;
}
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;
}
/**
* Build an item list for the controls.
*

View File

@@ -11,13 +11,6 @@ export default class HeaderSecondary extends Component {
return <ul className="Header-controls">{listItems(this.items().toArray())}</ul>;
}
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;
}
/**
* Build an item list for the controls.
*