Skip to content

Commit

Permalink
Fix notification for lightspeed login after the setting is disabled (#…
Browse files Browse the repository at this point in the history
…911)

* Fix notification for lightspeed login

Fixes #859

In addition to PR #877
update the logic to initialize the Lightspeed authentication provider
only after the Lightspeed setting is enabled.

* remove reload logis
  • Loading branch information
ganeshrn committed Jun 5, 2023
1 parent 1f5f05f commit 76f21dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/lightspeed/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export class LightSpeedManager {
ANSIBLE_LIGHTSPEED_AUTH_ID,
ANSIBLE_LIGHTSPEED_AUTH_NAME
);
this.lightSpeedAuthenticationProvider.initialize();
if (this.settingsManager.settings.lightSpeedService.enabled) {
this.lightSpeedAuthenticationProvider.initialize();
}
this.apiInstance = new LightSpeedAPI(
this.settingsManager,
this.lightSpeedAuthenticationProvider
Expand Down

0 comments on commit 76f21dd

Please sign in to comment.