Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
šŸ› Fixed confusing messaging around .yml extension being allowed for rā€¦
Browse files Browse the repository at this point in the history
ā€¦outes.yaml uploads (#1140)

no issue

The server never supported uploading .yml files

* updated uploader `invalid extension` error message to be more abstract
* fixed routes uploader validation allowing .yml files
  • Loading branch information
vikaspotluri123 authored and kevinansfield committed Apr 3, 2019
1 parent 4ce8a72 commit a5bfd36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/gh-uploader.js
Expand Up @@ -181,7 +181,7 @@ export default Component.extend({

if (!extension || extensions.indexOf(extension.toLowerCase()) === -1) {
let validExtensions = `.${extensions.join(', .').toUpperCase()}`;
return `The image type you uploaded is not supported. Please use ${validExtensions}`;
return `The file type you uploaded is not supported. Please use ${validExtensions}`;
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/settings/labs.js
Expand Up @@ -26,7 +26,7 @@ const IMPORT_MIME_TYPES = [
const JSON_EXTENSION = ['json'];
const JSON_MIME_TYPE = ['application/json'];

const YAML_EXTENSION = ['yml', 'yaml'];
const YAML_EXTENSION = ['yaml'];
const YAML_MIME_TYPE = [
'text/vnd.yaml',
'application/vnd.yaml',
Expand Down
2 changes: 1 addition & 1 deletion app/templates/settings/labs.hbs
Expand Up @@ -307,7 +307,7 @@
{{/if}}
</span>
</button>
<span><a href="#" {{action "downloadFile" "settings/routes/yaml"}} data-test-link="download-routes">Download current routes.yml</a></span>
<span><a href="#" {{action "downloadFile" "settings/routes/yaml"}} data-test-link="download-routes">Download current routes.yaml</a></span>
{{/if}}

<div style="display:none">
Expand Down

0 comments on commit a5bfd36

Please sign in to comment.