[reshares] display flash message instead of just appending it to the stream (fixes #2094)
This commit is contained in:
parent
152101484c
commit
0dee8aae36
2 changed files with 6 additions and 1 deletions
|
|
@ -39,7 +39,11 @@ app.views.Feedback = app.views.Base.extend({
|
|||
reshare.save({}, {
|
||||
url: this.model.createReshareUrl,
|
||||
success : function(resp){
|
||||
app.stream && app.stream.add(reshare);
|
||||
var flash = new Diaspora.Widgets.FlashMessages;
|
||||
flash.render({
|
||||
success: true,
|
||||
notice: Diaspora.I18n.t("reshares.successful")
|
||||
});
|
||||
model.trigger("interacted")
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ en:
|
|||
hide: "hide comments"
|
||||
reshares:
|
||||
duplicate: "That good, huh? You've already reshared that post!"
|
||||
successful: "The post was successfully reshared!"
|
||||
aspect_navigation:
|
||||
select_all: "Select all"
|
||||
deselect_all: "Deselect all"
|
||||
|
|
|
|||
Loading…
Reference in a new issue