Skip to content

Commit

Permalink
added send location option
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Nov 23, 2023
1 parent 25f97b6 commit 11a582a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@glific/flow-editor",
"license": "AGPL-3.0",
"repository": "git://github.com/glific/floweditor.git",
"version": "1.19.3",
"version": "1.19.3-1",
"description": "'Standalone flow editing tool designed for use within the Glific suite of messaging tools'",
"browser": "umd/flow-editor.min.js",
"unpkg": "umd/flow-editor.min.js",
Expand Down
10 changes: 5 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@
</body>

<script>
var base = '/.netlify/functions/';
var base = 'http://localhost:4000/flow-editor/';

const frontendUrl = window.location.origin;
const frontendUrl = window.location.origin;

var uuid = 'a4f64f1b-85bc-477e-b706-de313a022979';
var uuid = '3fa22108-f464-41e5-81d9-d8a298854429';
var config = {
flow: uuid,
flowType: 'messaging',
Expand Down Expand Up @@ -351,7 +351,7 @@
users: base + 'users',
flows: base + 'flows',
sheets: base + 'sheets',
revisions: base + 'revisions',
revisions: base + 'revisions/' + uuid,
recents: base + 'recents/',
languages: base + 'languages',
environment: base + 'environment',
Expand All @@ -362,7 +362,7 @@
attachments: base + 'flow-attachment',
activity: base + 'activity',
validateMedia: base + 'validate-media',
interactives: base + 'interactives',
interactives: base + 'interactive-templates',
contact: frontendUrl + '/chat/',
editor: '/',
simulateStart: null,
Expand Down
7 changes: 7 additions & 0 deletions src/components/flow/actions/sendinteractivemsg/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ export const getMsgBody = (message: any) => {
))}
</div>
);
} else if (message.type === 'location_request_message') {
body = (
<div>
<span className="fe-map-marker" />
{message.body.text}
</div>
);
}
}
return body;
Expand Down

0 comments on commit 11a582a

Please sign in to comment.