Commit 4cee6262 authored by Christopher Brown's avatar Christopher Brown
Browse files

remove willnorris/imageproxy from sysadmin console

parent ff293df2
......@@ -149,6 +149,14 @@ export default class StorageSettings extends AdminSettings {
);
}
const imageProxyTypeValues = [
{value: '', text: Utils.localizeMessage('admin.image.proxyTypeNone', 'None')},
{value: 'atmos/camo', text: 'atmos/camo'}
];
if (this.state.imageProxyType === 'willnorris/imageproxy') {
imageProxyTypeValues.push({value: 'willnorris/imageproxy', text: 'willnorris/imageproxy'});
}
return (
<SettingsGroup>
<DropdownSetting
......@@ -364,11 +372,7 @@ export default class StorageSettings extends AdminSettings {
/>
<DropdownSetting
id='imageProxyType'
values={[
{value: '', text: Utils.localizeMessage('admin.image.proxyTypeNone', 'None')},
{value: 'atmos/camo', text: 'atmos/camo'},
{value: 'willnorris/imageproxy', text: 'willnorris/imageproxy'}
]}
values={imageProxyTypeValues}
label={
<FormattedMessage
id='admin.image.proxyType'
......@@ -413,7 +417,7 @@ export default class StorageSettings extends AdminSettings {
helpText={
<FormattedMessage
id='admin.image.proxyOptionsDescription'
defaultMessage='Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.'
defaultMessage='Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.'
/>
}
value={this.state.imageProxyOptions}
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "Maximum File Size:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "None",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "Taille maximale de fichier :",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "Aucun",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "최대 파일 크기:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "None",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "Maximale bestandsgrootte:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "Geen",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "Maksymalny rozmiar pliku:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "Brak",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "Максимальный размер файла:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "Нет",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "最大文件大小:",
"admin.image.proxyOptions": "图片代理选项:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "图片代理类型:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "无",
......
......@@ -520,7 +520,7 @@
"admin.image.maxFileSizeExample": "50",
"admin.image.maxFileSizeTitle": "最大檔案大小:",
"admin.image.proxyOptions": "Image Proxy Options:",
"admin.image.proxyOptionsDescription": "Additional options for basic image adjustments such as resizing, cropping, and rotation. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyOptionsDescription": "Additional options such as the URL signing key. Refer to your image proxy documentation to learn more about what options are supported.",
"admin.image.proxyType": "Image Proxy Type:",
"admin.image.proxyTypeDescription": "Configure an image proxy to load all Markdown images through a proxy. The image proxy prevents users from making insecure image requests, provides caching for increased performance, and automates image adjustments such as resizing. See <a href=\"https://about.mattermost.com/default-image-proxy-documentation\">documentation</a> to learn more.",
"admin.image.proxyTypeNone": "無",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment