Skip to content

Commit e202928

Browse files
committed
tweak workspaces messaging
1 parent a962084 commit e202928

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

routes/workspaces.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var Deferrals = require('../lib/deferrals');
21
var gx = require('gx');
32

43
exports.initialize = function(app) {
@@ -94,11 +93,11 @@ exports.initialize = function(app) {
9493

9594
if (!errors) {
9695
yield workspace.save().complete(gx.resume);
97-
req.flash('info', 'Saved new workspace');
96+
req.flash('info', 'Saved workspace');
9897
res.redirect("/workspaces");
9998
} else {
10099
req.flash('danger', 'There was an error: ' + JSON.stringify(errors));
101-
res.redirect("/workspaces/new");
100+
res.redirect("/workspaces/" + workspace.handle);
102101
}
103102

104103
});

views/workspaces.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% set title = 'Workspace' %}
3+
{% set title = 'Workspaces' %}
44

55
{% block pagetitle %}
66
<div class="pagetitle">

0 commit comments

Comments
 (0)