Skip to content

Commit

Permalink
better error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Reettaphant committed May 10, 2016
1 parent bb12175 commit b8703b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kahuna/public/js/edits/image-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class="result-editor__info-item--png-warning"ng:if="ctrl.invalidReasons['is_invalid_png']">
<strong>PNG</strong>: This type currently not supported
<button
gr-tooltip={{ctrl.invalidPngHelp}}
gr-tooltip="{{ctrl.invalidPngHelp}}"
gr-tooltip-position="right">
<gr-icon>help</gr-icon></button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion kahuna/public/js/edits/image-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ imageEditor.controller('ImageEditorCtrl', [
ctrl.status = ctrl.image.data.valid ? 'ready' : 'invalid';
ctrl.usageRights = imageService(ctrl.image).usageRights;
ctrl.invalidReasons = ctrl.image.data.invalidReasons;
ctrl.invalidPngHelp = 'Transparent pngs of type Palette are not supported. To crop this image, convert it to True Color and upload it again';
ctrl.invalidPngHelp = 'Transparent pngs of type Palette are not supported. ' +
'To crop this image, convert it to True Color and upload it again';

//TODO put collections in their own directive
ctrl.addCollection = false;
Expand Down

0 comments on commit b8703b2

Please sign in to comment.