mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(lint): move jdbc progress sticky value out of computed
This commit is contained in:
@@ -274,12 +274,10 @@ function getAgentProgressPercent(dbType: string): number | null {
|
||||
return next ?? lastAgentProgressPercent[dbType] ?? null;
|
||||
}
|
||||
|
||||
const jdbcPluginProgressNumber = computed(() => {
|
||||
const next = driverInstallProgressPercent(jdbcPluginProgress.value);
|
||||
if (next !== null) {
|
||||
lastJdbcPluginProgressPercent.value = next;
|
||||
}
|
||||
return next ?? lastJdbcPluginProgressPercent.value;
|
||||
const jdbcPluginProgressNumber = computed(() => driverInstallProgressPercent(jdbcPluginProgress.value) ?? lastJdbcPluginProgressPercent.value);
|
||||
watch(jdbcPluginProgress, (progress) => {
|
||||
const next = driverInstallProgressPercent(progress);
|
||||
if (next !== null) lastJdbcPluginProgressPercent.value = next;
|
||||
});
|
||||
|
||||
function resetAgentInstallProgress() {
|
||||
|
||||
Reference in New Issue
Block a user