Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1470b868
Commit
1470b868
authored
Feb 20, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logout
parent
21556832
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
mockup/user-panel.html
mockup/user-panel.html
+1
-1
src/converse-profile.js
src/converse-profile.js
+11
-7
src/templates/profile_view.html
src/templates/profile_view.html
+1
-1
No files found.
mockup/user-panel.html
View file @
1470b868
...
...
@@ -5,7 +5,7 @@
<span
class=
"username w-100 align-self-center"
>
Walter White
</span>
<!-- <a class="chatbox-btn fa fa-vcard align-self-center" title="Your profile" data-toggle="modal" data-target="#userProfileModal"></a> -->
<!-- <a class="chatbox-btn fa fa-cog align-self-center" title="Change settings" data-toggle="modal" data-target="#settingsModal"></a> -->
<a
class=
"chatbox-btn fa fa-sign-out align-self-center"
title=
"Log out"
></a>
<a
class=
"chatbox-btn
logout
fa fa-sign-out align-self-center"
title=
"Log out"
></a>
</div>
<div
class=
"d-flex xmpp-status"
>
<span
class=
"online w-100 align-self-center"
data-value=
"online"
>
...
...
src/converse-profile.js
View file @
1470b868
...
...
@@ -42,7 +42,8 @@
"
click a.choose-xmpp-status
"
:
"
toggleOptions
"
,
"
click #fancy-xmpp-status-select a.change-xmpp-status-message
"
:
"
renderStatusChangeForm
"
,
"
submit
"
:
"
setStatusMessage
"
,
"
click .dropdown dd ul li a
"
:
"
setStatus
"
"
click .dropdown dd ul li a
"
:
"
setStatus
"
,
"
click .logout
"
:
"
logOut
"
},
initialize
()
{
...
...
@@ -88,15 +89,18 @@
this
.
model
.
setStatusMessage
(
ev
.
target
.
querySelector
(
'
input
'
).
value
);
},
logOut
(
ev
)
{
ev
.
preventDefault
();
const
result
=
confirm
(
__
(
"
Are you sure you want to log out?
"
));
if
(
result
===
true
)
{
_converse
.
logOut
();
}
},
setStatus
(
ev
)
{
ev
.
preventDefault
();
const
value
=
ev
.
target
.
getAttribute
(
'
data-value
'
);
if
(
value
===
'
logout
'
)
{
_converse
.
logOut
();
}
else
{
this
.
model
.
setStatus
(
value
);
}
utils
.
slideIn
(
this
.
el
.
querySelector
(
"
#target dd ul
"
));
},
getPrettyStatus
(
stat
)
{
...
...
src/templates/profile_view.html
View file @
1470b868
...
...
@@ -6,7 +6,7 @@
<span
class=
"username w-100 align-self-center"
>
{{{o.fullname}}}
</span>
<!-- <a class="chatbox-btn fa fa-vcard align-self-center" title="{{{o.title_your_profile}}}" data-toggle="modal" data-target="#userProfileModal"></a> -->
<!-- <a class="chatbox-btn fa fa-cog align-self-center" title="{{{o.title_change_status}}}" data-toggle="modal" data-target="#settingsModal"></a> -->
<a
class=
"chatbox-btn fa fa-sign-out align-self-center"
title=
"{{{o.title_log_out}}}"
></a>
<a
class=
"chatbox-btn
logout
fa fa-sign-out align-self-center"
title=
"{{{o.title_log_out}}}"
></a>
</div>
<div
class=
"d-flex xmpp-status"
>
<span
class=
"{{{o.chat_status}}} w-100 align-self-center"
data-value=
"{{{o.chat_status}}}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment