mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Show Permission Denied inline
This commit is contained in:
parent
810b13d25a
commit
ae2d02ae64
@ -665,9 +665,9 @@ Submits the message.
|
||||
$('#timsChatInputContainer').removeClass('formError').find('.innerError').hide()
|
||||
@getMessages()
|
||||
failure: (data) =>
|
||||
return true if not (data?.returnValues?.errorType?)
|
||||
return true if not (data?.returnValues?.errorType?) and not (data?.message?)
|
||||
|
||||
$('#timsChatInputContainer').addClass('formError').find('.innerError').html(data.returnValues.errorType).show()
|
||||
$('#timsChatInputContainer').addClass('formError').find('.innerError').show().html (data?.returnValues?.errorType) ? data.message
|
||||
false
|
||||
|
||||
**toggleSidebarContents(target)**
|
||||
|
Loading…
Reference in New Issue
Block a user