|
@@ -37,26 +37,6 @@ class LiveStreamButton extends AbstractLiveStreamButton<Props> {
|
37
|
37
|
iconName = 'icon-public';
|
38
|
38
|
toggledIconName = 'icon-public';
|
39
|
39
|
|
40
|
|
- /**
|
41
|
|
- * Constructor of the component.
|
42
|
|
- *
|
43
|
|
- * @inheritdoc
|
44
|
|
- */
|
45
|
|
- constructor(props: Props) {
|
46
|
|
- super(props);
|
47
|
|
-
|
48
|
|
- this.tooltip = props._liveStreamDisabledTooltipKey;
|
49
|
|
- }
|
50
|
|
-
|
51
|
|
- /**
|
52
|
|
- * Implements {@code Component}'s componentWillReceiveProps.
|
53
|
|
- *
|
54
|
|
- * @inheritdoc
|
55
|
|
- */
|
56
|
|
- componentWillReceiveProps(newProps: Props) {
|
57
|
|
- this.tooltip = newProps._liveStreamDisabledTooltipKey;
|
58
|
|
- }
|
59
|
|
-
|
60
|
40
|
/**
|
61
|
41
|
* Helper function to be implemented by subclasses, which returns
|
62
|
42
|
* a React Element to display (a beta tag) at the end of the button.
|
|
@@ -76,6 +56,16 @@ class LiveStreamButton extends AbstractLiveStreamButton<Props> {
|
76
|
56
|
);
|
77
|
57
|
}
|
78
|
58
|
|
|
59
|
+ /**
|
|
60
|
+ * Returns the tooltip that should be displayed when the button is disabled.
|
|
61
|
+ *
|
|
62
|
+ * @private
|
|
63
|
+ * @returns {string}
|
|
64
|
+ */
|
|
65
|
+ _getTooltip() {
|
|
66
|
+ return this.props._liveStreamDisabledTooltipKey || '';
|
|
67
|
+ }
|
|
68
|
+
|
79
|
69
|
/**
|
80
|
70
|
* Helper function to be implemented by subclasses, which must return a
|
81
|
71
|
* boolean value indicating if this button is disabled or not.
|