fix(admin): show non-Docker update steps when not running in Docker (#1269)

The "How to Update" modal always rendered Docker commands and claimed the instance runs in Docker, even on bare-metal / LXC installs like Proxmox Community Scripts. It now branches on the is_docker flag the backend already returns: non-Docker installs get a generic "re-run your install method" note plus a link to the update guide. Docker stays the default when the flag is absent, so existing installs are unaffected.
This commit is contained in:
Maurice
2026-06-20 23:40:34 +02:00
committed by Maurice
parent 7df5956920
commit 457a42b229
21 changed files with 77 additions and 5 deletions
+3
View File
@@ -270,6 +270,9 @@ const admin: TranslationStrings = {
'admin.update.howTo': 'Як оновити',
'admin.update.dockerText':
'Ваш екземпляр TREK працює в Docker. Для оновлення до {version} виконайте ці команди на сервері:',
'admin.update.nonDockerText':
'Цей екземпляр TREK не працює в Docker. Щоб оновити до {version}, повторно запустіть метод встановлення або оновлення, який ви використовували, — наприклад, у Proxmox Community Scripts запустіть оновлення з консолі LXC:',
'admin.update.wikiLink': 'Відкрити інструкцію з оновлення',
'admin.update.reloadHint': 'Перезавантажте сторінку через кілька секунд.',
'admin.tabs.permissions': 'Дозволи',
'admin.notifications.emailPanel.title': 'Email (SMTP)',