File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,26 @@ watch(selectedRefresh, (newValue) => {
41
41
}
42
42
}
43
43
});
44
-
44
+ const showSpinning = ref (false );
45
+ watch (
46
+ () => props .isLoading ,
47
+ (newValue ) => {
48
+ if (newValue ) {
49
+ showSpinning .value = true ;
50
+ window .setTimeout (() => {
51
+ showSpinning .value = false ;
52
+ }, 1000 );
53
+ }
54
+ }
55
+ );
45
56
async function refresh() {
46
57
await emit (" manualRefresh" );
47
58
}
48
59
</script >
49
60
50
61
<template >
51
62
<div class =" refresh-config" >
52
- <button class =" btn btn-sm" title =" refresh" @click =" refresh" ><i class =" fa fa-refresh" :class =" { spinning: props.isLoading }" /> Refresh List</button >
63
+ <button class =" btn btn-sm" title =" refresh" @click =" refresh" ><i class =" fa fa-refresh" :class =" { spinning: showSpinning }" /> Refresh List</button >
53
64
<div class =" filter" >
54
65
<div class =" filter-label" >Auto-Refresh:</div >
55
66
<div class =" filter-component" >
You can’t perform that action at this time.
0 commit comments