From e8161aa9f4c47b75c16ee469cdb6f51486365e8d Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 26 Nov 2018 21:21:12 +0100 Subject: [PATCH] Added specific external updater messages for Apt and Docker. --- .editorconfig | 4 ++-- frontend/src/System/Updates/Updates.js | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index dad58944a..2e0adf606 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,14 +2,14 @@ # editorconfig.org root = true -[*.{cs,html,js,hbs}] +[*.{cs}] charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 4 -[*.less] +[*.{js,html,js,hbs,less}] charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true diff --git a/frontend/src/System/Updates/Updates.js b/frontend/src/System/Updates/Updates.js index 758cd8599..8b76c1921 100644 --- a/frontend/src/System/Updates/Updates.js +++ b/frontend/src/System/Updates/Updates.js @@ -36,6 +36,12 @@ class Updates extends Component { const hasUpdateToInstall = hasUpdates && _.some(items, { installable: true, latest: true }); const noUpdateToInstall = hasUpdates && !hasUpdateToInstall; + const externalUpdaterMessages = { + external: 'Unable to update Sonarr directly, Sonarr is configured to use an external update mechanism', + apt: 'Unable to update Sonarr directly, use apt to install the update', + docker: 'Unable to update Sonarr directly, update the docker container to receive the update' + }; + return ( @@ -71,7 +77,7 @@ class Updates extends Component { />
- Unable to update Sonarr. Sonarr is configured to use an external update mechanism + {externalUpdaterMessages[updateMechanism] || externalUpdaterMessages.external}
}