Skip to content

Commit f70121b

Browse files
committed
pref: show loading icon when reload non-string value
1 parent 5a6758a commit f70121b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/content_value/ContentValueWrapper.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { types as redisTypes } from '@/consts/support_redis_type.js'
2+
import { types, types as redisTypes } from '@/consts/support_redis_type.js'
33
import ContentValueString from '@/components/content_value/ContentValueString.vue'
44
import ContentValueHash from '@/components/content_value/ContentValueHash.vue'
55
import ContentValueList from '@/components/content_value/ContentValueList.vue'
@@ -113,7 +113,7 @@ const loadData = async (reset, full, selMatch) => {
113113
*/
114114
const onReload = async (selDecode, selFormat) => {
115115
try {
116-
const { name, db, keyCode, keyPath, decode, format, matchPattern } = data.value
116+
const { name, type, db, keyCode, keyPath, decode, format, matchPattern } = data.value
117117
const targetFormat = selFormat || format
118118
const targetDecode = selDecode || decode
119119
browserStore.setSelectedFormat(name, keyPath, db, targetFormat, targetDecode)
@@ -124,7 +124,7 @@ const onReload = async (selDecode, selFormat) => {
124124
decode: targetDecode,
125125
format: targetFormat,
126126
matchPattern,
127-
showLoading: false,
127+
showLoading: type !== types.STRING && type !== types.JSON,
128128
})
129129
} finally {
130130
}

0 commit comments

Comments
 (0)