FEATURE: Pop revise modal on post edited notification (#6287)

* Add revision number to notification url

* Pop modal on route change

* Add semicolon

* Ensure modal pops even when navigating within a topic

* Ensure modal pops when visiting from other page

* Fix eslint errors

* Fix prettier errors

* Add callback for notification item click

* Remove stray revisionUrl function

* Rename to afterRouteComplete
This commit is contained in:
James Kiesel
2018-08-24 09:13:07 -04:00
committed by Robin Ward
parent aa5a993935
commit a4001c1ea0
8 changed files with 49 additions and 4 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ class PostActionNotifier
Notification.types[:edited],
post,
display_username: post_revision.user.username,
acting_user_id: post_revision.try(:user_id)
acting_user_id: post_revision.try(:user_id),
revision_number: post_revision.number
)
end