Skip to content

Commit

Permalink
🎨 Move Save Revision wording to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Richard committed Aug 10, 2016
1 parent 2d45089 commit 3b5efa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
edit: 'edit',
revisions: 'revisions',
save: 'save',
new: 'Save Revision',
},
directory: path.join(__dirname, '../content-types'),
messages: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const routes = application => {
return next();
}

if (req.body.submit === 'Save Revision') {
if (req.body.submit === config.content.actions.new) {
check = 'save';
}

Expand Down
2 changes: 1 addition & 1 deletion views/content/_form-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>

<div class="form--actions">
<input type="submit" name="submit" value="Save Revision" class="form--submit">
<input type="submit" name="submit" value="{{config.actions.new}}" class="form--submit">
<a href="../" class="form--cancel">Cancel</a>
</div>

Expand Down

0 comments on commit 3b5efa5

Please sign in to comment.