Display startup message if provided by daemon
This commit is contained in:
parent
21ba8ae8b3
commit
8cf9395ea8
2 changed files with 11 additions and 0 deletions
|
@ -514,6 +514,13 @@ var App = React.createClass({
|
||||||
viewingPage: 'home'
|
viewingPage: 'home'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
componentDidMount: function() {
|
||||||
|
lbry.getStartNotice(function(notice) {
|
||||||
|
if (notice) {
|
||||||
|
alert(notice);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
handlePageChosen: function(page) {
|
handlePageChosen: function(page) {
|
||||||
this.setState({
|
this.setState({
|
||||||
viewingPage: page
|
viewingPage: page
|
||||||
|
|
|
@ -69,6 +69,10 @@ lbry.daemonRunningStatus = function (callback) {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lbry.getStartNotice = function(callback) {
|
||||||
|
lbry.call('get_start_notice', {}, callback);
|
||||||
|
}
|
||||||
|
|
||||||
lbry.getSettings = function(callback) {
|
lbry.getSettings = function(callback) {
|
||||||
lbry.call('get_settings', {}, callback);
|
lbry.call('get_settings', {}, callback);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue