Merge pull request #50 from Dahlgren/bugfix/no-servers-state

Handle first start without servers.json and better empty servers state
This commit is contained in:
Björn Dahlgren 2017-04-01 10:56:04 +02:00 committed by GitHub
commit 8c3cf2abbe
3 changed files with 5 additions and 4 deletions

View File

@ -70,7 +70,7 @@ Manager.prototype.load = (function () {
fs.readFile(filePath, function (err, data) { fs.readFile(filePath, function (err, data) {
if (err) { if (err) {
console.log(err); console.log("Could not load any existing servers configuration, starting fresh");
return; return;
} }

View File

@ -9,6 +9,7 @@ define(function (require) {
tpl = require('text!tpl/servers/empty.html'); tpl = require('text!tpl/servers/empty.html');
return Marionette.ItemView.extend({ return Marionette.ItemView.extend({
tagName: "tr",
template: _.template(tpl), template: _.template(tpl),
initialize: function (options) { initialize: function (options) {

View File

@ -1,5 +1,5 @@
<div class="jumbotron"> <td colspan="4">
<h1>Jumbotron heading</h1> <h1>Welcome!</h1>
<p class="lead">Create your first server!</p> <p class="lead">Create your first server!</p>
<p><a class="btn btn-lg btn-success" id="add-server" href="#" role="button">Create server</a></p> <p><a class="btn btn-lg btn-success" id="add-server" href="#" role="button">Create server</a></p>
</div> </td>