[feature] ibounds manual refresh

This commit is contained in:
Alireza Ahmadi
2023-05-02 19:12:06 +02:00
parent 402c713f06
commit 4736786c6f

View File

@@ -98,7 +98,7 @@
:dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
<a-select-option v-for="key in [5,10,30,60]" :value="key*1000">[[ key ]]s</a-select-option>
</a-select>
<a-icon type="sync" :spin="isRefreshEnabled"></a-icon>
<a-icon type="sync" :spin="isRefreshEnabled" @click="manualRefresh"></a-icon>
<a-switch v-model="isRefreshEnabled" @change="toggleRefresh"></a-switch>
</a-col>
</a-row>
@@ -814,6 +814,13 @@
changeRefreshInterval(){
localStorage.setItem("refreshInterval", this.refreshInterval);
},
async manualRefresh(){
if(!this.isRefreshEnabled){
this.spinning = true;
await this.getDBInbounds();
this.spinning = false;
}
},
},
watch: {
searchKey: debounce(function (newVal) {