Handle first start without servers.json and better empty servers state

This commit is contained in:
Björn Dahlgren 2017-04-01 10:49:45 +02:00
parent 100c38df6f
commit 00b39fccbf
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) {
if (err) {
console.log(err);
console.log("Could not load any existing servers configuration, starting fresh");
return;
}

View File

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

View File

@ -1,5 +1,5 @@
<div class="jumbotron">
<h1>Jumbotron heading</h1>
<td colspan="4">
<h1>Welcome!</h1>
<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>
</div>
</td>