File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/Umbraco.Cms.Integrations.Crm.Hubspot/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/js Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55 const oauthName = "OAuth" ;
66
7- vm . oauthSetup = {
8- authEventHandled : false
9- } ;
7+ vm . oauthSetup = { } ;
108 vm . status = { } ;
9+ vm . authEventHandled = false ;
1110
1211 $scope . $on ( 'formSubmitting' , function ( ) {
1312
5150 vm . onRevokeToken = function ( ) {
5251 umbracoCmsIntegrationsCrmHubspotResource . revokeAccessToken ( ) . then ( function ( response ) {
5352 vm . oauthSetup . isConnected = false ;
54- vm . oauthSetup . authEventHandled = false ;
53+ vm . authEventHandled = false ;
5554
5655 if ( typeof $scope . connected === "undefined" )
5756 notificationsService . success ( "HubSpot Configuration" , "OAuth connection revoked." ) ;
6665
6766 if ( event . data . type === "hubspot:oauth:success" ) {
6867
69- if ( vm . oauthSetup . authEventHandled === true ) return ;
68+ if ( vm . authEventHandled === true ) return ;
7069
7170 umbracoCmsIntegrationsCrmHubspotResource . getAccessToken ( event . data . code ) . then ( function ( response ) {
7271
73- vm . oauthSetup . authEventHandled = true ;
72+ vm . authEventHandled = true ;
7473
7574 if ( response . startsWith ( "Error:" ) ) {
7675 if ( typeof $scope . connected === "undefined" )
115114}
116115
117116angular . module ( "umbraco" )
118- . controller ( "Umbraco.Cms.Integrations.Crm.Hubspot.SettingsController" , settingsController ) ;
117+ . controller ( "Umbraco.Cms.Integrations.Crm.Hubspot.SettingsController" , settingsController ) ;
You can’t perform that action at this time.
0 commit comments