Commit c86b8c8 1 parent 263f2fb commit c86b8c8 Copy full SHA for c86b8c8
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export async function getFeed(id: number) {
13
13
export async function checkValidity ( link : string ) {
14
14
const resp = await api
15
15
. post ( 'feeds/validation' , {
16
+ timeout : 20000 ,
16
17
json : { link : link }
17
18
} )
18
19
. json < { feed_links : { title : string ; link : string } [ ] } > ( ) ;
@@ -27,6 +28,7 @@ export async function createFeed(data: {
27
28
return { name : v . name , link : v . link } ;
28
29
} ) ;
29
30
return await api . post ( 'feeds' , {
31
+ timeout : 20000 ,
30
32
json : { feeds : feeds , group_id : data . group_id }
31
33
} ) ;
32
34
}
@@ -50,6 +52,7 @@ export async function deleteFeed(id: number) {
50
52
51
53
export async function refreshFeeds ( options : { id ?: number ; all ?: boolean } ) {
52
54
return await api . post ( 'feeds/refresh' , {
55
+ timeout : 20000 ,
53
56
json : {
54
57
id : options . id ,
55
58
all : options . all
Original file line number Diff line number Diff line change 44
44
toast .promise (checkValidity (formData .link ), {
45
45
loading: ' Waiting for validating and sniffing ' + formData .link ,
46
46
success : (resp ) => {
47
+ loading = false ;
47
48
// resp = [
48
49
// { title: 'test1', link: 'https://test1/1.xml' },
49
50
// { title: 'test2', link: 'https://test2/2.xml' }
79
80
}
80
81
invalidateAll ();
81
82
open = false ;
82
- loading = false ;
83
83
}
84
84
</script >
85
85
You can’t perform that action at this time.
0 commit comments