mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 14:21:46 +00:00
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:
@@ -272,6 +272,9 @@ const admin: TranslationStrings = {
|
||||
'admin.update.howTo': 'Hoe bij te werken',
|
||||
'admin.update.dockerText':
|
||||
"Je TREK-instantie draait in Docker. Om bij te werken naar {version}, voer de volgende commando's uit op je server:",
|
||||
'admin.update.nonDockerText':
|
||||
'Deze TREK-instantie draait niet in Docker. Om bij te werken naar {version}, voer de installatie- of updatemethode die je hebt gebruikt opnieuw uit — bij Proxmox Community Scripts voer je de update bijvoorbeeld uit vanuit de LXC-console:',
|
||||
'admin.update.wikiLink': 'Open de updatehandleiding',
|
||||
'admin.update.reloadHint': 'Herlaad de pagina over een paar seconden.',
|
||||
'admin.tabs.permissions': 'Rechten',
|
||||
'admin.notifications.emailPanel.title': 'Email (SMTP)',
|
||||
|
||||
Reference in New Issue
Block a user