spin only in reload time

This commit is contained in:
Alireza Ahmadi
2023-05-08 12:43:52 +02:00
parent d1d7ee7f7c
commit 8960e5450a
2 changed files with 5 additions and 3 deletions

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="refreshing" @click="manualRefresh"></a-icon>
<a-icon type="sync" :spin="refreshing" @click="manualRefresh" style="margin: 0 5px;"></a-icon>
<a-switch v-model="isRefreshEnabled" @change="toggleRefresh"></a-switch>
</a-col>
</a-row>
@@ -337,7 +337,9 @@
return;
}
this.setInbounds(msg.obj);
this.refreshing = false;
setTimeout(() => {
this.refreshing = false;
}, 500);
},
async getDefaultSettings() {
const msg = await HttpUtil.post('/xui/setting/defaultSettings');

View File

@@ -6,7 +6,7 @@ import (
)
type InboundConfig struct {
Listen json_util.RawMessage `json:"listen"` // listen 不能为空字符串
Listen json_util.RawMessage `json:"listen"` // listen cannot be an empty string
Port int `json:"port"`
Protocol string `json:"protocol"`
Settings json_util.RawMessage `json:"settings"`