@kadira/storybook-addon-comments
Advanced tools
Comparing version 1.7.1 to 1.7.2
## Changelog | ||
### v1.7.1 | ||
18-October-2016 | ||
Load comments just after we found the current user. | ||
This fixes the issue of not loading comments for the current story just after reloaded. | ||
### v1.7.0 | ||
@@ -4,0 +10,0 @@ 14-October-2016 |
@@ -120,2 +120,12 @@ 'use strict'; | ||
this.user = user; | ||
// We don't load comments in the `setCurrentStory` if there's no loggedIn | ||
// user. | ||
// That's why we need to do this here. | ||
if (user) { | ||
var _currentStory = this.currentStory; | ||
var sbKind = _currentStory.sbKind; | ||
var sbStory = _currentStory.sbStory; | ||
this.setCurrentStory(sbKind, sbStory); | ||
} | ||
} | ||
@@ -122,0 +132,0 @@ }, { |
{ | ||
"name": "@kadira/storybook-addon-comments", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "Comments addon for Storybook", | ||
@@ -5,0 +5,0 @@ "main": "preview.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
356227
1093