How to use the ember-flexberry/routes/edit-form.extend function in ember-flexberry

To help you get started, we’ve selected a few ember-flexberry 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 Flexberry / ember-flexberry-designer / addon / routes / fd-business-server-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditBusinessServer',
  modelName: 'fd-dev-class'
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdLoadingForTransitionMixin from '../mixins/fd-loading-for-transition';

export default EditFormRoute.extend(FdLoadingForTransitionMixin, {

  modelProjection: 'FdUmlCad',

  modelName: 'fd-dev-uml-cad',
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-stage-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';

export default EditFormRoute.extend({
  modelProjection: 'EditFormView',
  modelName: 'fd-dev-stage',
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-class-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';

export default EditFormRoute.extend({
  modelProjection: 'FdEditClassForm',
  modelName: 'fd-dev-class',

  afterModel: function(model) {
    this._super(model);

    if (!model.get('caption')) {
      model.set('caption', model.get('name'));
    }

    let transitionMap = {
      '«application»': 'fd-application-edit-form',
      '«businessserver»': 'fd-business-server-edit-form',
      '«editform»': 'fd-edit-form-edit-form',
      '«enumeration»': 'fd-enum-edit-form',
      '«external»': 'fd-external-edit-form',
github Flexberry / ember-flexberry-designer / addon / routes / fd-configuration-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditFormView',
  modelName: 'fd-configuration'
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-enum-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdLoadingForTransitionMixin from '../mixins/fd-loading-for-transition';

export default EditFormRoute.extend(FdLoadingForTransitionMixin, {
  modelProjection: 'EditEnum',
  modelName: 'fd-dev-class'
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-type-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditType',
  modelName: 'fd-dev-class'
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-association-edit-form.js View on Github external
import { A } from '@ember/array';
import { inject as service } from '@ember/service';
import { isBlank } from '@ember/utils';
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditFormView',
  modelName: 'fd-dev-association',

  /**
   Service that get current project contexts.

   @property currentProjectContext
   @type {Class}
   @default service()
   */
  currentProjectContext: service('fd-current-project-context'),

  /**
    A hook you can use to setup the controller for the current route.
    [More info](http://emberjs.com/api/classes/Ember.Route.html#method_setupController).
github Flexberry / ember-flexberry-designer / addon / routes / fd-external-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditExternal',
  modelName: 'fd-dev-class'
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-interface-edit-form.js View on Github external
import EditFormRoute from 'ember-flexberry/routes/edit-form';
import FdFormCheckTransitionMixin from '../mixins/fd-form-check-transition';

export default EditFormRoute.extend(FdFormCheckTransitionMixin, {
  modelProjection: 'EditInterface',
  modelName: 'fd-dev-class'
});