-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a help button and dialog explaining why the MD5 checksum calcul…
…ation is needed prior to uploads. Fix #1081.
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
refinery/ui/source/js/data-set-import/controllers/dialog-help-md5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict'; | ||
|
||
var RefineryFileUploadMD5HelpCtrl = function ($uibModalInstance) { | ||
this.ok = function () { | ||
$uibModalInstance.close(); | ||
}; | ||
}; | ||
|
||
angular | ||
.module('refineryDataSetImport') | ||
.controller('RefineryFileUploadMD5HelpCtrl', [ | ||
'$uibModalInstance', RefineryFileUploadMD5HelpCtrl | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
refinery/ui/source/js/data-set-import/partials/dialog-help-md5.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="modal-header"> | ||
<h3>Why calculating the MD5 checksum</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<p>In order to ensure that the file has been correctly uploaded and is not corrupted we calculate the MD5 checksum locally (i.e. in the browser) before allowing the upload to start.</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-primary" ng-click="modal.ok()">OK</button> | ||
</div> |