Skip to content
Snippets Groups Projects
Commit 9893741f authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge pull request #1896 from alayek/logout-other-clients

Logout other clients
parents c1813ed2 76e07f2e
No related branches found
Tags 6.12.0
No related merge requests found
......@@ -276,6 +276,8 @@
"Login_with" : "Login with %s",
"login_with" : "Or login directly with",
"Logout" : "Logout",
"Logout_Others" : "Logout From Other Logged In Locations",
"Logged_out_of_other_clients_successfully" : "Logged out of other clients successfully",
"Make_Admin" : "Make Admin",
"Mark_as_read" : "Mark as read",
"Markdown_Headers" : "Markdown Headers",
......
......@@ -106,3 +106,9 @@ Template.accountProfile.onRendered ->
Template.accountProfile.events
'click .submit button': (e, t) ->
t.save()
'click .logoutOthers button': (event, templateInstance) ->
Meteor.logoutOtherClients (error) ->
if error
toastr.error error.reason
else
toastr.success t('Logged_out_of_other_clients_successfully')
......@@ -59,6 +59,9 @@
<div class="submit">
<button class="button"><i class="icon-send"></i><span>{{_ "Save_changes"}}</span></button>
</div>
<div class="logoutOthers">
<button class="button">{{_ "Logout_Others"}}</button>
</div>
</div>
</div>
</section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment