mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +03:00
Merge pull request #3487 from JohnONolan/notification-copy
Shorter notifications
This commit is contained in:
commit
f4895a4200
@ -139,12 +139,12 @@ var EditorControllerMixin = Ember.Mixin.create(MarkerManager, {
|
||||
errors: {
|
||||
post: {
|
||||
published: {
|
||||
'published': 'Your post could not be updated.',
|
||||
'draft': 'Your post could not be saved as a draft.'
|
||||
'published': 'Update failed.',
|
||||
'draft': 'Saving failed.'
|
||||
},
|
||||
draft: {
|
||||
'published': 'Your post could not be published.',
|
||||
'draft': 'Your post could not be saved as a draft.'
|
||||
'published': 'Publish failed.',
|
||||
'draft': 'Saving failed.'
|
||||
}
|
||||
|
||||
}
|
||||
@ -153,12 +153,12 @@ var EditorControllerMixin = Ember.Mixin.create(MarkerManager, {
|
||||
success: {
|
||||
post: {
|
||||
published: {
|
||||
'published': 'Your post has been updated.',
|
||||
'draft': 'Your post has been saved as a draft.'
|
||||
'published': 'Updated.',
|
||||
'draft': 'Saved.'
|
||||
},
|
||||
draft: {
|
||||
'published': 'Your post has been published.',
|
||||
'draft': 'Your post has been saved as a draft.'
|
||||
'published': 'Published!',
|
||||
'draft': 'Saved.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ CasperTest.begin('Post settings menu', 30, function suite(test) {
|
||||
|
||||
casper.waitForSelector('.notification-success', function waitForSuccess() {
|
||||
test.assert(true, 'got success notification');
|
||||
test.assertSelectorHasText('.notification-success', 'Your post has been saved as a draft.');
|
||||
test.assertSelectorHasText('.notification-success', 'Saved.');
|
||||
casper.click('.notification-success a.close');
|
||||
}, function onTimeout() {
|
||||
test.assert(false, 'No success notification');
|
||||
|
Loading…
Reference in New Issue
Block a user