File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
src/Pages/App/CreateAppModal Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ export type CloneListResponse = {
15
15
totalCount : number
16
16
}
17
17
18
+ export interface CloneListTypes {
19
+ offset ?: number
20
+ isJobView ?: boolean
21
+ searchKey ?: string
22
+ cloneListAbortControllerRef : React . MutableRefObject < AbortController >
23
+ handleCloneAppClick : ( app : BaseAppMetaData ) => void
24
+ }
25
+
18
26
export interface DevtronAppCloneListProps extends Pick < AppCloneListProps , 'handleCloneAppClick' | 'isJobView' > {
19
27
searchKey : string
20
28
}
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { abortPreviousRequests , BaseAppMetaData , post } from '@devtron-labs/devtron-fe-common-lib'
17
+ import { abortPreviousRequests , post } from '@devtron-labs/devtron-fe-common-lib'
18
18
19
19
import { getJobs } from '@Components/Jobs/Service'
20
20
import { APP_TYPE , Routes } from '@Config/constants'
21
21
import { getAppIconWithBackground } from '@Config/utils'
22
22
import { getAppListMin } from '@Services/service'
23
23
24
- import { CloneListResponse } from './AppClone/types'
24
+ import { CloneListResponse , CloneListTypes } from './AppClone/types'
25
25
26
26
export const createApp = ( request ) => post ( Routes . APP , request )
27
27
@@ -31,13 +31,7 @@ export const fetchDevtronCloneList = async ({
31
31
searchKey = '' ,
32
32
cloneListAbortControllerRef,
33
33
handleCloneAppClick,
34
- } : {
35
- offset ?: number
36
- isJobView ?: boolean
37
- searchKey ?: string
38
- cloneListAbortControllerRef : React . MutableRefObject < AbortController >
39
- handleCloneAppClick : ( app : BaseAppMetaData ) => void
40
- } ) : Promise < CloneListResponse > =>
34
+ } : CloneListTypes ) : Promise < CloneListResponse > =>
41
35
abortPreviousRequests ( async ( ) => {
42
36
if ( isJobView ) {
43
37
const res = await getJobs ( {
You can’t perform that action at this time.
0 commit comments