Archived
0

MCSM: добавил немного кнопок управления

This commit is contained in:
2017-03-25 06:19:42 +03:00
parent 99a1d787b7
commit 1ea44aaef2
2 changed files with 39 additions and 6 deletions

View File

@@ -42,7 +42,18 @@ var ContentModule = React.createClass({
if (this.state.nvScriptReady == 3) {
element = ce('div', {className: 'row'},
ce('div', {className: 'col-md-4'}, ce(ServerList)),
ce('div', {className: 'col-md-8'}, ce(NvLineChart))
ce('div', {className: 'col-md-8'},
ce('div', {className: 'pull-right'},
ce('div', {className: 'btn-group'},
ce(Button, {btnSize: 'xs'},
ce('span', {className: 'glyphicon glyphicon-play'}), nbsp+'запуск'),
ce(Button, {btnSize: 'xs'},
ce('span', {className: 'glyphicon glyphicon-stop'}), nbsp+'остановка')
)
),
ce('h2', {style: {'margin-top': '0px'}}, 'Server 2 [skywars-1]'),
ce(NvLineChart)
)
);
} else if (this.state.nvScriptReady < 0) {
element = ce('span', null, 'error');