How to use the xhr.js function in xhr

To help you get started, we’ve selected a few xhr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NetEaseGame / Sentry / src / sentry / static / sentry / app / views / groupDetails / actions.jsx View on Github external
'30MINUTES': 30,
  '2HOURS': 60 * 2,
  '24HOURS': 60 * 24,
};

const GroupActions = React.createClass({
  mixins: [
    ApiMixin,
    GroupState,
    History,
    TooltipMixin({
      selector: '.tip',
      container: 'body',
    }),
  ],
  xhr: new XHR(false),
  getInitialState() {
    return {
      showRedmineModel: false,
      redmineProjects: [],
      redmineTrackers: [],
      redmineVersions: []
    };
  },
  onDelete() {
    let group = this.getGroup();
    let project = this.getProject();
    let org = this.getOrganization();
    let loadingIndicator = IndicatorStore.add(t('Delete event..'));

    this.api.bulkDelete({
      orgId: org.slug,