import React, {Component, PropTypes} from 'react'; import PromptButton from '../base/PromptButton'; import {Dropdown, DropdownHint, DropdownButton, DropdownItem} from '../base/dropdown'; import PromptModal from '../modals/PromptModal'; import * as models from '../../../models'; import {showModal} from '../modals/index'; import {trackEvent} from '../../../analytics/index'; import AlertModal from '../modals/AlertModal'; import {MOD_SYM} from '../../../common/constants'; class RequestActionsDropdown extends Component { _setDropdownRef = n => this._dropdown = n; _handleDuplicate = () => { const {request, handleDuplicateRequest} = this.props; handleDuplicateRequest(request); trackEvent('Request', 'Duplicate', 'Request Action'); }; _handleGenerateCode = () => { this.props.handleGenerateCode(this.props.request); trackEvent('Request', 'Generate Code', 'Request Action'); }; _handleAdvancedSend = () => { trackEvent('Request', 'Advanced Send Hint', 'Request Action'); showModal(AlertModal, { title: 'Advanced Sending', message: (
{MOD_SYM.replace('+', '')}
while
clicking the send button next to the Url.