Added auto deprecation feature

This commit is contained in:
Ultradesu
2025-07-20 17:37:46 +03:00
parent 9c5518b39e
commit af6c4d7e61
7 changed files with 58 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ class SSHKeyManager {
this.showDeprecatedOnly = false;
this.initializeEventListeners();
this.loadVersion();
this.loadFlows();
}
@@ -149,6 +150,20 @@ class SSHKeyManager {
});
}
async loadVersion() {
try {
const response = await fetch('/api/version');
if (response.ok) {
const data = await response.json();
document.getElementById('appVersion').textContent = `v${data.version}`;
} else {
document.getElementById('appVersion').textContent = 'Unknown';
}
} catch (error) {
document.getElementById('appVersion').textContent = 'Error';
}
}
async loadFlows() {
try {
this.showLoading();