fix mqtt capture isValidState and capture panel
This commit is contained in:
@@ -83,16 +83,17 @@
|
||||
}))
|
||||
}
|
||||
}, 2000)
|
||||
|
||||
page = Math.ceil(items.length / perPage)
|
||||
hasMore = items.length === perPage * page
|
||||
if (hasMore) {
|
||||
const potentialNewItems = await loadInputs(page + 1, perPage)
|
||||
hasMore = potentialNewItems.length > 0
|
||||
if (items) {
|
||||
page = Math.ceil(items.length / perPage)
|
||||
hasMore = items.length === perPage * page
|
||||
if (hasMore) {
|
||||
const potentialNewItems = await loadInputs(page + 1, perPage)
|
||||
hasMore = potentialNewItems.length > 0
|
||||
}
|
||||
initLoad = true
|
||||
isEmpty = items.length === 0
|
||||
length = items.length
|
||||
}
|
||||
initLoad = true
|
||||
isEmpty = items.length === 0
|
||||
length = items.length
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
if (hasAlreadyFailed) return
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
bind:value={v.topic}
|
||||
bind:value={subscribe_topics[i].topic}
|
||||
disabled={!can_write}
|
||||
placeholder="topic"
|
||||
autocomplete="off"
|
||||
|
||||
Reference in New Issue
Block a user