File tree Expand file tree Collapse file tree 6 files changed +0
-50
lines changed
viewer/packages/lowcoder/src Expand file tree Collapse file tree 6 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ export const PLUGINS_SETTING = "/setting/plugins";
1414export const THEME_DETAIL = "/setting/theme/detail" ;
1515export const THEME_DETAIL_URL = `${ THEME_DETAIL } /:themeId` ;
1616
17- export const OAUTH_PROVIDER_SETTING = "/setting/oauth-provider" ;
18- export const OAUTH_PROVIDER_DETAIL = "/setting/oauth-provider/detail" ;
19-
2017export const ALL_APPLICATIONS_URL = "/apps" ;
2118export const ADMIN_APP_URL = "/ee/:applicationId/:viewMode" ;
2219export const MODULE_APPLICATIONS_URL = "/apps/module" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { validateResponse } from "api/apiUtils";
66import IdSourceApi from "api/idSourceApi" ;
77import { DangerIcon , CustomModal } from "lowcoder-design" ;
88import history from "util/history" ;
9- import { OAUTH_PROVIDER_SETTING } from "constants/routesURL" ;
109import { messageInstance } from "lowcoder-design/src/components/GlobalInstances" ;
1110
1211export const DeleteConfig = ( props : { id : string } ) => {
@@ -19,11 +18,6 @@ export const DeleteConfig = (props: { id: string }) => {
1918 setDeleteLoading ( true ) ;
2019 IdSourceApi . deleteConfig ( props . id )
2120 . then ( ( resp ) => {
22- if ( validateResponse ( resp ) ) {
23- messageInstance . success ( trans ( "idSource.disableSuccess" ) , 0.8 , ( ) =>
24- history . push ( OAUTH_PROVIDER_SETTING )
25- ) ;
26- }
2721 } )
2822 . catch ( ( e ) => messageInstance . error ( e . message ) )
2923 . finally ( ( ) => setDeleteLoading ( false ) ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
1212 CloseEyeIcon ,
1313} from "lowcoder-design" ;
1414import history from "util/history" ;
15- import { OAUTH_PROVIDER_SETTING } from "constants/routesURL" ;
1615import {
1716 authConfig ,
1817 AuthType ,
@@ -74,12 +73,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
7473 } )
7574 }
7675 } , [ configDetail ] ) ;
77- const goList = ( ) => {
78- history . push ( OAUTH_PROVIDER_SETTING ) ;
79- } ;
80- if ( ! configDetail ) {
81- goList ( ) ;
82- }
8376 const handleSuccess = ( values : any ) => {
8477 setSaveLoading ( true ) ;
8578 let params = {
@@ -106,14 +99,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
10699 ...params ,
107100 }
108101 }
109- IdSourceApi . saveConfig ( params )
110- . then ( ( resp ) => {
111- if ( validateResponse ( resp ) ) {
112- messageInstance . success ( trans ( "idSource.saveSuccess" ) , 0.8 , goList ) ;
113- }
114- } )
115- . catch ( ( e ) => messageInstance . error ( e . message ) )
116- . finally ( ( ) => setSaveLoading ( false ) ) ;
117102 } ;
118103
119104 const handleChange = ( allValues : { [ key : string ] : string } ) => {
@@ -168,7 +153,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
168153 < DetailContainer >
169154 < Header >
170155 < HeaderBack >
171- < span onClick = { ( ) => goList ( ) } > { trans ( "idSource.title" ) } </ span >
172156 < ArrowIcon />
173157 < span > { authConfig [ configDetail . authType ] . sourceName } </ span >
174158 </ HeaderBack >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
2222} from "pages/setting/idSource/styledComponents" ;
2323import FreeLimitTag from "pages/common/freeLimitTag" ;
2424import history from "util/history" ;
25- import { OAUTH_PROVIDER_DETAIL } from "constants/routesURL" ;
2625import { selectSystemConfig } from "redux/selectors/configSelectors" ;
2726import { isEnterpriseMode , isSelfDomain } from "util/envUtils" ;
2827import { default as Badge } from "antd/es/badge" ;
@@ -120,15 +119,6 @@ export const IdSourceList = (props: any) => {
120119 : "" ;
121120 } }
122121 onRow = { ( record ) => ( {
123- onClick : ( ) => {
124- if ( authTypeDisabled ( ( record as ConfigItem ) . authType , enableEnterpriseLogin ) ) {
125- return ;
126- }
127- history . push ( {
128- pathname : OAUTH_PROVIDER_DETAIL ,
129- state : record ,
130- } ) ;
131- } ,
132122 } ) }
133123 >
134124 < Column
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import { getUser } from "redux/selectors/usersSelectors";
2323import history from "util/history" ;
2424import { useParams } from "react-router-dom" ;
2525import { BrandingSetting } from "@lowcoder-ee/pages/setting/branding/BrandingSetting" ;
26- import { IdSourceHome } from "@lowcoder-ee/pages/setting/idSource" ;
2726import { selectSystemConfig } from "redux/selectors/configSelectors" ;
2827import { enableCustomBrand } from "util/featureFlagUtils" ;
2928import FreeLimitTag from "pages/common/freeLimitTag" ;
@@ -152,7 +151,6 @@ export function SettingHome() {
152151 { selectKey === SettingPageEnum . UserGroups && < PermissionSetting /> }
153152 { selectKey === SettingPageEnum . Organization && < Organization /> }
154153 { selectKey === SettingPageEnum . Theme && < ThemeHome /> }
155- { selectKey === SettingPageEnum . OAuthProvider && < IdSourceHome /> }
156154 { selectKey === SettingPageEnum . Audit && < AuditSetting /> }
157155 { selectKey === SettingPageEnum . Branding && < BrandingSetting /> }
158156 { selectKey === SettingPageEnum . Advanced && < AdvancedSetting /> }
You can’t perform that action at this time.
0 commit comments