Skip to content

Commit

Permalink
FIX: code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAppDev committed Dec 20, 2023
1 parent fc6fcfa commit ea0b85c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/javascript/components/rooms/room/forms/ShareRoomForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ ShareRoomForm.propTypes = {
id: PropTypes.string.isRequired,
friendly_id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
voice_bridge_phone_number: PropTypes.string,
voice_bridge: PropTypes.string,
last_session: PropTypes.string,
shared_owner: PropTypes.string,
online: PropTypes.bool,
Expand Down
8 changes: 4 additions & 4 deletions app/javascript/helpers/ICSDownloadHelper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export const createICSContent = (name, room_name, url, voice_bridge, voice_bridg
}


description = `\n\n${t('room.meeting.invite_to_meeting', {name})}\n\n${t('room.meeting.join_by_url')}:\n${url}\n`;
var description = `\n\n${t('room.meeting.invite_to_meeting', {name})}\n\n${t('room.meeting.join_by_url')}:\n${url}\n`;

if (typeof voice_bridge !== 'undefined' && typeof voice_bridge_phone_number !== 'undefined') {
description += `\n${t('or')} ${t('room.meeting.join_by_phone')}:\n${voice_bridge_phone_number},,${voice_bridge}`;
}

const date = new Date();

return eventContent = {
return {
start: [date.getFullYear(), date.getMonth(), date.getDay(), 12, 0],
url: url,
description: description,
Expand All @@ -41,7 +41,7 @@ export const createICSContent = (name, room_name, url, voice_bridge, voice_bridg
}

const createICSWithHtml = (name, room_name, url, voice_bridge, voice_bridge_phone_number,t) => {
phone_data = "";
var phone_data = "";

if (typeof voice_bridge !== 'undefined' && typeof voice_bridge_phone_number !== 'undefined') {
phone_data = `<h6 style="padding-top: 0; padding-bottom: 0; font-weight: 500; vertical-align: baseline; font-size: 16px; line-height: 19.2px; margin: 0;" align="left">${t('or')} ${t('room.meeting.join_by_phone')}:</h6>
Expand Down Expand Up @@ -125,7 +125,7 @@ const createICSWithHtml = (name, room_name, url, voice_bridge, voice_bridge_phon

const date = new Date();

return eventContent = {
return {
start: [date.getFullYear(), date.getMonth(), date.getDay(), 12, 0],
url: url,
htmlContent: HTML,
Expand Down

0 comments on commit ea0b85c

Please sign in to comment.