Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
beac0c33
Commit
beac0c33
authored
9 years ago
by
Gabriel Engel
Browse files
Options
Downloads
Patches
Plain Diff
Adding more debug logs
parent
3161b525
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/routes/router.coffee
+1
-4
1 addition, 4 deletions
client/routes/router.coffee
client/views/app/chatWindowDashboard.coffee
+4
-8
4 additions, 8 deletions
client/views/app/chatWindowDashboard.coffee
with
5 additions
and
12 deletions
client/routes/router.coffee
+
1
−
4
View file @
beac0c33
...
...
@@ -74,15 +74,12 @@ Router.route '/room/:_id',
return
RoomManager
.
open
@
params
.
_id
onBeforeAction
:
->
Session
.
set
(
'flexOpened'
,
tru
e
)
Session
.
set
(
'flexOpened'
,
fals
e
)
Session
.
set
(
'openedRoom'
,
this
.
params
.
_id
)
# zera a showUserInfo pra garantir que vai estar com a listagem do grupo aberta
Session
.
set
(
'showUserInfo'
,
null
)
#correção temporária para a versão mobile
if
Modernizr
.
touch
Session
.
set
(
'flexOpened'
,
false
)
this
.
next
()
action
:
->
...
...
This diff is collapsed.
Click to expand it.
client/views/app/chatWindowDashboard.coffee
+
4
−
8
View file @
beac0c33
# @TODO bug com o botão para "rolar até o fim" (novas mensagens) quando há uma mensagem com texto que gere rolagem horizontal
Template
.
chatWindowDashboard
.
helpers
tAddUsers
:
->
return
t
(
'chatWindowDashboard.Add_users'
)
tQuickSearch
:
->
return
t
(
'chatWindowDashboard.Quick_Search'
)
favorite
:
->
console
.
log
'chatWindowDashboard.favorite'
if
window
.
rocketDebug
sub
=
ChatSubscription
.
findOne
{
rid
:
this
.
_id
,
'u._id'
:
Meteor
.
userId
()
}
...
...
@@ -32,7 +35,6 @@ Template.chatWindowDashboard.helpers
showTyping
:
->
console
.
log
'chatWindowDashboard.showTyping'
if
window
.
rocketDebug
return
this
.
t
is
't'
typing
:
->
...
...
@@ -159,23 +161,17 @@ Template.chatWindowDashboard.helpers
isChannel
:
->
roomData
=
Session
.
get
(
'roomData'
+
this
.
_id
)
return
''
unless
roomData
return
roomData
.
t
is
'c'
canAddUser
:
->
roomData
=
Session
.
get
(
'roomData'
+
this
.
_id
)
return
''
unless
roomData
return
roomData
.
t
in
[
'p'
,
'c'
]
and
roomData
.
u
?
.
_id
is
Meteor
.
userId
()
canEditName
:
->
roomData
=
Session
.
get
(
'roomData'
+
this
.
_id
)
return
''
unless
roomData
return
roomData
.
u
?
.
_id
is
Meteor
.
userId
()
and
roomData
.
t
in
[
'c'
,
'p'
]
roomNameEdit
:
->
...
...
@@ -195,7 +191,6 @@ Template.chatWindowDashboard.helpers
phoneNumber
:
->
return
''
unless
this
.
phoneNumber
if
this
.
phoneNumber
.
length
>
10
return
"(
#{
this
.
phoneNumber
.
substr
(
0
,
2
)
}
)
#{
this
.
phoneNumber
.
substr
(
2
,
5
)
}
-
#{
this
.
phoneNumber
.
substr
(
7
)
}
"
else
...
...
@@ -250,6 +245,7 @@ Template.chatWindowDashboard.helpers
Template
.
chatWindowDashboard
.
events
"click .flex-tab .more"
:
(
event
)
->
console
.
log
'chatWindowDashboard click .flex-tab .more'
if
window
.
rocketDebug
Session
.
set
(
'flexOpened'
,
!
Session
.
get
(
'flexOpened'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment