File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
dash-renderer/src/components/core Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ import PropTypes from 'prop-types';
5
5
class DocumentTitle extends Component {
6
6
constructor ( props ) {
7
7
super ( props ) ;
8
+ const { update_title} = props . config ;
8
9
this . state = {
9
10
initialTitle : document . title ,
11
+ update_title : update_title ,
10
12
} ;
11
13
}
12
14
13
15
UNSAFE_componentWillReceiveProps ( props ) {
14
16
if ( props . pendingCallbacks . length ) {
15
- document . title = 'Updating...' ;
17
+ document . title = this . state . update_title ;
16
18
} else {
17
19
document . title = this . state . initialTitle ;
18
20
}
@@ -29,8 +31,10 @@ class DocumentTitle extends Component {
29
31
30
32
DocumentTitle . propTypes = {
31
33
pendingCallbacks : PropTypes . array . isRequired ,
34
+ update_title : PropTypes . string ,
32
35
} ;
33
36
34
37
export default connect ( state => ( {
38
+ config : state . config ,
35
39
pendingCallbacks : state . pendingCallbacks ,
36
40
} ) ) ( DocumentTitle ) ;
You can’t perform that action at this time.
0 commit comments