notice when trying to upload to Youtube with Twitter auth

This commit is contained in:
Josh
2017-07-11 15:28:30 -04:00
parent 042622cb01
commit 29ca709c85
4 changed files with 24 additions and 5 deletions

View File

@ -169,6 +169,10 @@ class @Recordings
options.selector = '.disabled-tooltip'
options.title = I18n.youtube_disabled
$('#recordings').tooltip(options)
options.selector = '.invalid-tooltip'
options.title = I18n.invalid_provider
$('#recordings').tooltip(options)
$(document).one "turbolinks:before-cache", =>
@getTable().api().clear().draw().destroy()
@ -371,8 +375,10 @@ class @Recordings
canUpload = res_data['uploadable']
)
if canUpload
if canUpload == 'true'
$(this).attr('data-popover-body', '.mail_youtube_popover')
else if canUpload == 'invalid_provider'
$(this).attr('data-popover-body', '.no_youtube_popover')
else
$(this).attr('data-popover-body', '.mail_popover')