mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(toolbox) allow any toolbox button to be displayed in main toolbar (#9488)
* feat(toolbox) allow any toolbox button to be displayed as main fixes the previous behaviour where only a certain set of buttons were whitelisted for being displayed in the main toolbar * code review * code review - fix avatar icon position
This commit is contained in:
@@ -37,9 +37,28 @@ class SharedVideoButton extends AbstractButton<Props, *> {
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.sharedvideo';
|
||||
icon = IconShareVideo;
|
||||
label = 'toolbar.sharedvideo';
|
||||
tooltip = 'toolbar.sharedvideo';
|
||||
toggledLabel = 'toolbar.stopSharedVideo';
|
||||
|
||||
/**
|
||||
* Dynamically retrieves tooltip based on sharing state.
|
||||
*/
|
||||
get tooltip() {
|
||||
if (this._isToggled()) {
|
||||
return 'toolbar.stopSharedVideo';
|
||||
}
|
||||
|
||||
return 'toolbar.sharedvideo';
|
||||
}
|
||||
|
||||
/**
|
||||
* Required by linter due to AbstractButton overwritten prop being writable.
|
||||
*
|
||||
* @param {string} value - The value.
|
||||
*/
|
||||
set tooltip(value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button, and opens a new dialog.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user