Add error flash message to publisher on error from server

This commit is contained in:
Jason Robinson 2014-05-31 21:06:47 +03:00
parent b73e478e26
commit 6fd4894997
2 changed files with 4 additions and 5 deletions

View file

@ -183,6 +183,7 @@ app.views.Publisher = Backbone.View.extend({
self.setInputEnabled(true); self.setInputEnabled(true);
self.setButtonsEnabled(true); self.setButtonsEnabled(true);
self.$('#publisher_spinner').addClass('hidden'); self.$('#publisher_spinner').addClass('hidden');
Diaspora.page.flashMessages.render({ 'success':false, 'notice':Diaspora.I18n.t('failed_to_post_message') });
} }
}); });
}, },

View file

@ -50,6 +50,9 @@ en:
limited: "Limited - your post will only be seen by people you are sharing with" limited: "Limited - your post will only be seen by people you are sharing with"
public: "Public - your post will be visible to everyone and found by search engines" public: "Public - your post will be visible to everyone and found by search engines"
near_from: "Posted from: <%= location %>" near_from: "Posted from: <%= location %>"
option: "Option <%= nr %>"
add_option: "Add option"
question: "Question"
bookmarklet: bookmarklet:
post_submit: "Submitting post..." post_submit: "Submitting post..."
post_success: "Posted! Closing popup window..." post_success: "Posted! Closing popup window..."
@ -110,11 +113,6 @@ en:
mark_read: "Mark read" mark_read: "Mark read"
mark_unread: "Mark unread" mark_unread: "Mark unread"
publisher:
option: "Option <%= nr %>"
add_option: "Add option"
question: "Question"
stream: stream:
hide: "Hide" hide: "Hide"
public: "Public" public: "Public"