diff --git a/app/javascript/dashboard/components/widgets/conversation/bubble/Location.vue b/app/javascript/dashboard/components/widgets/conversation/bubble/Location.vue new file mode 100644 index 000000000..6400c3d38 --- /dev/null +++ b/app/javascript/dashboard/components/widgets/conversation/bubble/Location.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/app/javascript/dashboard/components/widgets/conversation/stories/LocationBubble.stories.js b/app/javascript/dashboard/components/widgets/conversation/stories/LocationBubble.stories.js new file mode 100644 index 000000000..8f21a9da1 --- /dev/null +++ b/app/javascript/dashboard/components/widgets/conversation/stories/LocationBubble.stories.js @@ -0,0 +1,34 @@ +import LocationBubble from '../bubble/Location.vue'; + +export default { + title: 'Components/Help Center', + component: LocationBubble, + argTypes: { + latitude: { + defaultValue: 1, + control: { + type: 'number', + }, + }, + longitude: { + defaultValue: 1, + control: { + type: 'number', + }, + }, + name: { + defaultValue: '420, Dope street', + control: { + type: 'string', + }, + }, + }, +}; + +const Template = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { LocationBubble }, + template: '', +}); + +export const LocationBubbleView = Template.bind({}); diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index c5f954b1c..13c46ced3 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -158,6 +158,9 @@ "DOWNLOAD": "Download", "UPLOADING": "Uploading..." }, + "LOCATION_BUBBLE": { + "SEE_ON_MAP": "See on map" + }, "FORM_BUBBLE": { "SUBMIT": "Submit" }