Skip to content

Commit

Permalink
feat(MeetingsSdkAdapter): add missing text on controls
Browse files Browse the repository at this point in the history
  • Loading branch information
alinasuciu authored and cipak committed Sep 3, 2021
1 parent 1fd58a5 commit c439fe7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
16 changes: 8 additions & 8 deletions src/MeetingsSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,26 +834,26 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter {
const inactiveShare = {
ID: SHARE_CONTROL,
type: 'TOGGLE',
icon: 'share-screen-presence-stroke_26',
tooltip: 'Start Share',
state: MeetingControlState.INACTIVE,
text: null,
icon: 'share-screen-presence-stroke_26',
text: 'Start sharing',
tooltip: 'Start Sharing',
};
const activeShare = {
ID: SHARE_CONTROL,
type: 'TOGGLE',
icon: 'share-screen-presence-stroke_26',
tooltip: 'Stop Share',
state: MeetingControlState.ACTIVE,
text: null,
icon: 'share-screen-presence-stroke_26',
text: 'Stop sharing',
tooltip: 'Stop Sharing',
};
const disabledShare = {
ID: SHARE_CONTROL,
type: 'TOGGLE',
state: MeetingControlState.DISABLED,
icon: 'share-screen-presence-stroke_26',
text: 'Sharing is Unavailable',
tooltip: 'Sharing is Unavailable',
state: MeetingControlState.DISABLED,
text: null,
};

const getDisplayData$ = Observable.create((observer) => {
Expand Down
1 change: 0 additions & 1 deletion src/MeetingsSDKAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ describe('Meetings SDK Adapter', () => {
ID: 'share-screen',
type: 'TOGGLE',
icon: 'share-screen-presence-stroke_26',
text: null,
});
done();
});
Expand Down
6 changes: 4 additions & 2 deletions src/MeetingsSDKAdapter/controls/RosterControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ export default class RosterControl extends MeetingControl {
const active = {
ID: this.ID,
type: 'TOGGLE',
state: MeetingControlState.ACTIVE,
icon: 'participant-list_28',
text: 'Participants',
tooltip: 'Hide participants panel',
state: MeetingControlState.ACTIVE,
};
const inactive = {
ID: this.ID,
type: 'TOGGLE',
state: MeetingControlState.INACTIVE,
icon: 'participant-list_28',
text: 'Participants',
tooltip: 'Show participants panel',
state: MeetingControlState.INACTIVE,
};

return this.adapter.getMeeting(meetingID).pipe(
Expand Down
3 changes: 2 additions & 1 deletion src/MeetingsSDKAdapter/controls/RosterControl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ describe('Roster Control', () => {
expect(dataDisplay).toMatchObject({
ID: 'member-roster',
type: 'TOGGLE',
state: 'inactive',
icon: 'participant-list_28',
text: 'Participants',
tooltip: 'Show participants panel',
state: 'inactive',
});
});
});
Expand Down
6 changes: 4 additions & 2 deletions src/MeetingsSDKAdapter/controls/SettingsControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ export default class SettingsControl extends MeetingControl {
const active = {
ID: this.ID,
type: 'TOGGLE',
state: MeetingControlState.ACTIVE,
icon: 'settings_32',
text: 'Settings',
tooltip: 'Hide settings panel',
state: MeetingControlState.ACTIVE,
};
const inactive = {
ID: this.ID,
type: 'TOGGLE',
state: MeetingControlState.INACTIVE,
icon: 'settings_32',
text: 'Settings',
tooltip: 'Show settings panel',
state: MeetingControlState.INACTIVE,
};

return this.adapter.getMeeting(meetingID).pipe(
Expand Down
3 changes: 2 additions & 1 deletion src/MeetingsSDKAdapter/controls/SettingsControl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ describe('Settings Control', () => {
expect(dataDisplay).toMatchObject({
ID: 'settings',
type: 'TOGGLE',
state: 'inactive',
icon: 'settings_32',
text: 'Settings',
tooltip: 'Show settings panel',
state: 'inactive',
});
});
});
Expand Down

0 comments on commit c439fe7

Please sign in to comment.