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

Fix for broken image upload button #766

Merged
merged 1 commit into from
Jul 4, 2017

Conversation

patrickskim
Copy link

@patrickskim patrickskim commented Jul 2, 2017

closes TryGhost/Ghost#8637

  • add a default object to _openImageFileDialog args so that destructuring with default params works when not passed a value

@coveralls
Copy link

Coverage Status

Coverage remained the same at 73.105% when pulling 50eec0f on patrickkim:patch-1 into ad2eeab on TryGhost:master.

@@ -311,7 +311,7 @@ export default Component.extend(ShortcutsMixin, {
delete this._onEditorPaneScroll;
},

_openImageFileDialog({captureSelection = true}) {
_openImageFileDialog(captureSelection = true) {

This comment was marked as abuse.

This comment was marked as abuse.

@patrickskim patrickskim force-pushed the patch-1 branch 2 times, most recently from bacd550 to a0b48fe Compare July 3, 2017 13:54
Removed superfluous curly braces.
Fixes TryGhost/Ghost#8637
@coveralls
Copy link

Coverage Status

Coverage remained the same at 73.105% when pulling a0b48fe on patrickkim:patch-1 into ad2eeab on TryGhost:master.

@patrickskim
Copy link
Author

Hi Kevin, thanks for reviewing. I looked into both methods suggested. I think setting a default value is the correct approach as it encourages consistent usage while remaining open to the usage of named params in the future. Made changes to reflect.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 73.105% when pulling a0b48fe on patrickkim:patch-1 into ad2eeab on TryGhost:master.

@kevinansfield kevinansfield merged commit bace776 into TryGhost:master Jul 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image button not working in editor
4 participants