lib/riemann/dash/public/dash.js in riemann-dash-0.1.1 vs lib/riemann/dash/public/dash.js in riemann-dash-0.2.0
- old
+ new
@@ -57,11 +57,11 @@
// Preserve current workspace state
var stash = function() {
var currentIndex = currentWorkspaceIndex();
if (currentIndex != null) {
- console.log(util.merge(currentWorkspace(), {view: currentView.json()}));
+ //console.log(util.merge(currentWorkspace(), {view: currentView.json()}));
workspaces[currentIndex] =
util.merge(currentWorkspace(), {view: currentView.json()});
}
toolbar.workspaces(workspaces);
toolbar.workspace(currentWorkspace());
@@ -147,11 +147,14 @@
persistence.save(
{
server: toolbar.server(),
workspaces: workspaces
},
- function() { console.log("Saved config."); },
- function(xhr, x, msg) { console.log("Error saving config", msg); }
+ function() { toastr.info("Configuration saved.") },
+ function(xhr, msg) {
+ console.log("Error saving config", msg);
+ toastr.error("Error saving config: " + msg);
+ }
);
}
// Global keybindings.
// s is for save