Sha256: 64c4ceb76a9d3808ca29b725f4b62f144c979f393606b55cbd0cdf9de1bb9a27

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

import { translate as __ } from 'foremanReact/common/I18n';
import { foremanUrl } from 'foremanReact/common/helpers';

export const JOB_TEMPLATES = 'JOB_TEMPLATES';
export const JOB_CATEGORIES = 'JOB_CATEGORIES';
export const JOB_TEMPLATE = 'JOB_TEMPLATE';
export const templatesUrl = foremanUrl('/api/v2/job_templates');

export const repeatTypes = {
  noRepeat: __('Does not repeat'),
  cronline: __('Cronline'),
  monthly: __('Monthly'),
  weekly: __('Weekly'),
  daily: __('Daily'),
  hourly: __('Hourly'),
};

export const WIZARD_TITLES = {
  categoryAndTemplate: __('Category and Template'),
  hostsAndInputs: __('Target hosts and inputs'),
  advanced: __('Advanced Fields'),
  schedule: __('Schedule'),
  review: __('Review Details'),
};

export const initialScheduleState = {
  repeatType: repeatTypes.noRepeat,
  repeatAmount: '',
  starts: '',
  ends: '',
  isFuture: false,
  isNeverEnds: false,
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_remote_execution-4.8.0 webpack/JobWizard/JobWizardConstants.js