refactor(app-config): rename allowCustomConnection as customConnectionAllowed

This commit is contained in:
Ali BARIN
2024-10-09 12:03:57 +00:00
committed by Faruk AYDIN
parent 0bbe362660
commit 73edb45ff7
9 changed files with 17 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ export default function Application() {
const connectionOptions = React.useMemo(() => {
const shouldHaveCustomConnection =
appConfig?.data?.connectionAllowed &&
appConfig?.data?.allowCustomConnection;
appConfig?.data?.customConnectionAllowed;
const options = [
{
@@ -158,7 +158,7 @@ export default function Application() {
(appConfig?.data &&
!appConfig?.data?.disabled &&
!appConfig?.data?.connectionAllowed &&
!appConfig?.data?.allowCustomConnection) ||
!appConfig?.data?.customConnectionAllowed) ||
connectionOptions.every(({ disabled }) => disabled)
}
options={connectionOptions}