Skip to content

Commit

Permalink
Jkmarx/data import slug validation (#1441)
Browse files Browse the repository at this point in the history
* Remove duplicat file.

* Fix div error.

* Add error message for invalid slug.
  • Loading branch information
jkmarx authored and scottx611x committed Oct 4, 2016
1 parent 34dfab2 commit 839ba4b
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 452 deletions.
343 changes: 0 additions & 343 deletions refinery/ui/source/js/data-set-import/directives/metadata-table.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ function metadataTableDirective (
replace: true,
templateUrl: '/static/partials/data-set-import/partials/metadata-table.html',
link: function (scope, element, attrs, ctrl) {
// use to check pattern of public shortcut name
scope.urlShortcutRegex = /^[a-zA-Z0-9_]*$/;

// Helper method to disable data file upload if files are uploading
ctrl.areFilesUploading = function () {
if (fileUploadStatusService.fileUploadStatus === 'running') {
Expand Down

0 comments on commit 839ba4b

Please sign in to comment.