Unverified Commit 8ee92e34 authored by Benjamin Neff's avatar Benjamin Neff Committed by Steffen van Bergerem
Browse files

Fix duplicate flash message on mobile profile edit

closes #7107
parent 58379199
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
* Prevent overflow of interaction avatars in the single post view [#7070](https://github.com/diaspora/diaspora/pull/7070)
* Fix moving publisher on first click after page load [#7094](https://github.com/diaspora/diaspora/pull/7094)
* Fix link to comment on report page [#7105](https://github.com/diaspora/diaspora/pull/7105)
* Fix duplicate flash message on mobile profile edit [#7107](https://github.com/diaspora/diaspora/pull/7107)

## Features
* Deleted comments will be removed when loading more comments [#7045](https://github.com/diaspora/diaspora/pull/7045)
+0 −8
Original line number Diff line number Diff line
@@ -28,14 +28,6 @@
      });
    });

- if mobile
  .stream
  - flash.each do |name, msg|
    %div{:id => "flash_#{name}", :class => "expose"}
      .message= msg
    .stream
      %p{:class => "conversation_#{name}"}= msg

%h3.inline
  = t("profiles.edit.basic")
  %span{ :title => t("profiles.edit.basic_hint") }
+5 −1
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@
        = link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default"
        = submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile"

      - flash.each do |name, msg|
        .alert{class: "alert-#{flash_class name}", role: "alert"}
          = msg

      = form_tag profile_path, method: :put, multipart: true, id: "update_profile_form" do
        = render "edit_public", profile: @profile, aspect: @aspect, person: @person, mobile: true
        = render "edit_public", profile: @profile, aspect: @aspect, person: @person
        = render "edit_private", person: @person, profile: @profile, aspect: @aspect, step: @step