Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsml-ui",
"version": "1.4.2",
"version": "1.4.3",
"private": false,
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/components/Meeting.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,27 @@ export default function Meeting({
text: strings.contribute_with.replace('%service%', 'PayPal'),
});
}
for (let i = 1; i < 4; i++) {
if (!meeting[`contact_${i}_name`]) continue;
if (meeting[`contact_${i}_email`])
contactButtons.push({
href: `mailto:${meeting[`contact_${i}_email`]}`,
icon: 'email',
text: strings.contact_email.replace(
'%contact%',
meeting[`contact_${i}_name`]
),
});
if (meeting[`contact_${i}_phone`])
contactButtons.push({
href: `tel:${meeting[`contact_${i}_phone`]}`,
icon: 'phone',
text: strings.contact_call.replace(
'%contact%',
meeting[`contact_${i}_name`]
),
});
}

const locationWeekdays = Info.weekdays()
.map((weekday, index) => ({
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const en: Translation = {
address: 'Address / Platform',
appointment: 'Appointment',
back_to_meetings: 'Back to Meetings',
contact_call: 'Call %contact%',
contact_email: 'Email %contact%',
contribute_with: 'Contribute with %service%',
distance: 'Distance',
distance_any: 'Any Distance',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const es: Translation = {
address: 'Dirección',
appointment: 'Cita',
back_to_meetings: 'Volver a las reuniones',
contact_call: 'Llamar a %contact%',
contact_email: 'Correo a %contact%',
contribute_with: 'Contribuya con %service%',
distance: 'Distancia',
distance_any: 'Cualquier distancia',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const fr: Translation = {
address: 'Adresse',
appointment: 'Rendez-vous',
back_to_meetings: 'Retour aux réunions',
contact_call: 'Appelez %contact%',
contact_email: 'E-mail à %contact%',
contribute_with: 'Contribuer avec %service%',
distance: 'Distance',
distance_any: 'Toute distance',
Expand Down
9 changes: 9 additions & 0 deletions src/types/Meeting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ export interface Meeting {
conference_provider?: string;
conference_url?: string;
conference_url_notes?: string;
contact_1_name?: string;
contact_1_email?: string;
contact_1_phone?: string;
contact_2_name?: string;
contact_2_email?: string;
contact_2_phone?: string;
contact_3_name?: string;
contact_3_email?: string;
contact_3_phone?: string;
day?: Day | Day[];
distance?: number;
edit_url?: string | null;
Expand Down
2 changes: 2 additions & 0 deletions src/types/Translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export interface Translation {
address: string;
appointment: string;
back_to_meetings: string;
contact_call: string;
contact_email: string;
contribute_with: string;
distance: string;
distance_any: string;
Expand Down