fix(driver): keep store update hints visible
This commit is contained in:
1 file changed
+5
-9
@@ -215,7 +215,7 @@ function resetInstallProgress() {
|
|||||||
lastProgressPercent.value = null;
|
lastProgressPercent.value = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const updatableCount = computed(() => (props.updateNotificationsEnabled ? drivers.value.filter((d) => d.update_available).length : 0));
|
const updatableCount = computed(() => drivers.value.filter((d) => d.update_available).length);
|
||||||
const downloadCacheBytes = computed(() => Number(driverStoreUsage.value?.download_cache_bytes || 0));
|
const downloadCacheBytes = computed(() => Number(driverStoreUsage.value?.download_cache_bytes || 0));
|
||||||
const usageSummary = computed(() => {
|
const usageSummary = computed(() => {
|
||||||
const usage = driverStoreUsage.value;
|
const usage = driverStoreUsage.value;
|
||||||
@@ -243,8 +243,8 @@ function updateAgentDrivers(nextDrivers: AgentDriverInfo[]) {
|
|||||||
emitDriverUpdateCount();
|
emitDriverUpdateCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
const agentTabUpdateCount = computed(() => (props.updateNotificationsEnabled ? drivers.value.filter((d) => d.update_available).length : 0));
|
const agentTabUpdateCount = computed(() => drivers.value.filter((d) => d.update_available).length);
|
||||||
const jdbcTabUpdateCount = computed(() => (props.updateNotificationsEnabled && jdbcPluginStatus.value?.update_available ? 1 : 0));
|
const jdbcTabUpdateCount = computed(() => (jdbcPluginStatus.value?.update_available ? 1 : 0));
|
||||||
|
|
||||||
function emitDriverUpdateCount() {
|
function emitDriverUpdateCount() {
|
||||||
if (!props.updateNotificationsEnabled) {
|
if (!props.updateNotificationsEnabled) {
|
||||||
@@ -986,11 +986,7 @@ onMounted(async () => {
|
|||||||
void loadDriverStoreUsage();
|
void loadDriverStoreUsage();
|
||||||
void loadDriverStorePath();
|
void loadDriverStorePath();
|
||||||
|
|
||||||
if (props.updateNotificationsEnabled) {
|
void forceRefresh().catch(() => undefined);
|
||||||
api.listInstalledAgents().then((result) => {
|
|
||||||
updateAgentDrivers(result);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
unlisten = await api.listenAgentInstallProgress((payload) => {
|
unlisten = await api.listenAgentInstallProgress((payload) => {
|
||||||
if (payload.step === "done" || payload.step === "all-done") {
|
if (payload.step === "done" || payload.step === "all-done") {
|
||||||
@@ -1005,7 +1001,7 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
void loadJdbcDrivers();
|
void loadJdbcDrivers();
|
||||||
if (props.updateNotificationsEnabled) void loadJdbcPluginStatus();
|
void loadJdbcPluginStatus();
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user