fix: Disabled authentication providers show as enabled in settings

This commit is contained in:
Tom Moor
2023-01-03 19:32:16 -05:00
parent 1c9eee2134
commit a2e183627c
2 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { observable } from "mobx";
import { computed, observable } from "mobx";
import BaseModel from "./BaseModel";
import Field from "./decorators/Field";
@@ -14,6 +14,11 @@ class AuthenticationProvider extends BaseModel {
@Field
@observable
isEnabled: boolean;
@computed
get isActive() {
return this.isEnabled && this.isConnected;
}
}
export default AuthenticationProvider;