-
diff --git a/plugins/coral-plugin-viewing-options/client/index.js b/plugins/coral-plugin-viewing-options/client/index.js
index 4e9001c1b..464a38d7d 100644
--- a/plugins/coral-plugin-viewing-options/client/index.js
+++ b/plugins/coral-plugin-viewing-options/client/index.js
@@ -1,9 +1,11 @@
import ViewingOptions from './containers/ViewingOptions';
import reducer from './reducer';
+import translations from './translations.yml';
export default {
reducer,
slots: {
streamFilter: [ViewingOptions]
- }
+ },
+ translations
};
diff --git a/plugins/coral-plugin-viewing-options/client/translations.yml b/plugins/coral-plugin-viewing-options/client/translations.yml
new file mode 100644
index 000000000..6ab31fa1b
--- /dev/null
+++ b/plugins/coral-plugin-viewing-options/client/translations.yml
@@ -0,0 +1,4 @@
+en:
+ viewing_options: "Viewing Options"
+es:
+ viewing_options: "Opciones de visualización"
\ No newline at end of file
diff --git a/plugins/talk-plugin-featured-comments/client/components/Tag.css b/plugins/talk-plugin-featured-comments/client/components/Tag.css
index 88a019b5d..7ade3d968 100644
--- a/plugins/talk-plugin-featured-comments/client/components/Tag.css
+++ b/plugins/talk-plugin-featured-comments/client/components/Tag.css
@@ -24,6 +24,15 @@
cursor: pointer;
}
+.noSelect {
+ -ms-user-select:none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -webkit-touch-callout:none;
+ user-select: none;
+ -webkit-tap-highlight-color:rgba(0,0,0,0);
+}
+
.tooltip {
top: 36px;
left: auto;
diff --git a/plugins/talk-plugin-featured-comments/client/components/Tag.js b/plugins/talk-plugin-featured-comments/client/components/Tag.js
index b7ee8cd6b..ee2d13b19 100644
--- a/plugins/talk-plugin-featured-comments/client/components/Tag.js
+++ b/plugins/talk-plugin-featured-comments/client/components/Tag.js
@@ -15,13 +15,15 @@ export default class Tag extends React.Component {
}
- showTooltip = () => {
+ showTooltip = e => {
+ e.preventDefault();
this.setState({
tooltip: true
});
}
- hideTooltip = () => {
+ hideTooltip = (e) => {
+ e.preventDefault();
this.setState({
tooltip: false
});
@@ -30,10 +32,13 @@ export default class Tag extends React.Component {
render() {
const {tooltip} = this.state;
return(
-
+
{
isTagged(this.props.comment.tags, 'FEATURED') ? (
-
+
{t('talk-plugin-featured-comments.featured')}
) : null
diff --git a/views/article.ejs b/views/article.ejs
index d803b6295..f1a7ba5d9 100644
--- a/views/article.ejs
+++ b/views/article.ejs
@@ -30,6 +30,17 @@
asset_url: '<%= asset_url ? asset_url : '' %>',
asset_id: '<%= asset_id ? asset_id : '' %>',
auth_token: '',
+ /**
+ * You can listen to events using the example below.
+ * The argument passed is the event emitter from
+ * https://github.com/asyncly/EventEmitter2
+ *
+ * events: function(events) {
+ * events.onAny(function(eventName, data) {
+ * console.log(eventName, data);
+ * });
+ * },
+ */
plugin_config: {
/**
* You can disable rendering slot components of a plugin by doing:
diff --git a/yarn.lock b/yarn.lock
index d2177f384..255dc7415 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2957,6 +2957,10 @@ event-stream@~3.3.0:
stream-combiner "~0.0.4"
through "~2.3.1"
+eventemitter2@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-4.1.2.tgz#0e1a8477af821a6ef3995b311bf74c23a5247f15"
+
eventemitter3@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-2.0.3.tgz#b5e1079b59fb5e1ba2771c0a993be060a58c99ba"