Added specific external updater messages for Apt and Docker.
This commit is contained in:
parent
5a24b8d294
commit
e8161aa9f4
|
@ -2,14 +2,14 @@
|
||||||
# editorconfig.org
|
# editorconfig.org
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*.{cs,html,js,hbs}]
|
[*.{cs}]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.less]
|
[*.{js,html,js,hbs,less}]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
|
@ -36,6 +36,12 @@ class Updates extends Component {
|
||||||
const hasUpdateToInstall = hasUpdates && _.some(items, { installable: true, latest: true });
|
const hasUpdateToInstall = hasUpdates && _.some(items, { installable: true, latest: true });
|
||||||
const noUpdateToInstall = hasUpdates && !hasUpdateToInstall;
|
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 (
|
return (
|
||||||
<PageContent title="Updates">
|
<PageContent title="Updates">
|
||||||
<PageContentBodyConnector>
|
<PageContentBodyConnector>
|
||||||
|
@ -71,7 +77,7 @@ class Updates extends Component {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className={styles.message}>
|
<div className={styles.message}>
|
||||||
Unable to update Sonarr. Sonarr is configured to use an external update mechanism
|
{externalUpdaterMessages[updateMechanism] || externalUpdaterMessages.external}
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue