Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';
export default EditFormController.extend(FdFormUnsavedData, {
parentRoute: 'fd-class-list-form'
});
import { computed, observer } from '@ember/object';
import { inject as service } from '@ember/service';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import { SimplePredicate } from 'ember-flexberry-data/query/predicate';
import Builder from 'ember-flexberry-data/query/builder';
export default EditFormController.extend({
parentRoute: 'fd-stage-list-form',
store: service('store'),
moduleSetting: undefined,
_changedModel: observer('model.id', function() {
this.set('moduleSetting.FrontendGitRepoUrl', '');
this.set('moduleSetting.FrontendLogin', '');
this.set('moduleSetting.FrontendPassword', '');
this.set('moduleSetting.FrontendBranch', '');
this.set('moduleSetting.FrontendPublishGh', false);
this.set('moduleSetting.BackendGitRepoUrl', '');
this.set('moduleSetting.BackendLogin', '');
this.set('moduleSetting.BackendPassword', '');
import EditFormController from 'ember-flexberry/controllers/edit-form';
export default EditFormController.extend({
parentRoute: 'fd-diagram-list-form',
init: function() {
}
});
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdWorkPanelToggler from '../mixins/fd-work-panel-toggler';
export default EditFormController.extend(FdWorkPanelToggler, {
parentRoute: 'fd-diagram-list-form',
});
import Ember from 'ember';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import { Query } from 'ember-flexberry-data';
import BusinessDataObjectEvents from 'ember-flexberry-designer/enums/i-c-s-soft-s-t-o-r-m-n-e-t-business-data-service-object-events';
const { SimplePredicate, FilterOperator, ComplexPredicate, Condition } = Query;
export default EditFormController.extend({
parentRoute: 'fd-class-list-form',
header: Ember.computed.readOnly('model.name'),
currentContext: Ember.inject.service('fd-current-project-context'),
getCellComponent(attr, bindingPath, model) {
let cellComponent = this._super(...arguments);
if (attr.kind === 'belongsTo') {
switch (`${model.modelName}+${bindingPath}`) {
case 'fd-class-storage-type+storageType':
cellComponent.componentProperties = {
choose: 'showLookupDialog',
remove: 'removeLookupValue',
displayAttributeName: 'shortName',
required: true,
import { inject as service } from '@ember/service';
import { A } from '@ember/array';
import { set } from '@ember/object';
import { isNone } from '@ember/utils';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';
import { updateAggregationOnDiagram } from '../utils/fd-update-class-diagram';
export default EditFormController.extend(FdFormUnsavedData, {
parentRoute: 'fd-aggregation-list-form',
/**
Service that get current project contexts.
@property currentProjectContext
@type {Class}
@default service()
*/
currentProjectContext: service('fd-current-project-context'),
/**
Array all classes.
@property implementations
@type Array
import Ember from 'ember';
import EditFormController from 'ember-flexberry/controllers/edit-form';
export default EditFormController.extend({
parentRoute: 'fd-inheritance-list-form',
/**
Service that get current project contexts.
@property currentProjectContext
@type {Class}
@default Ember.inject.service()
*/
currentProjectContext: Ember.inject.service('fd-current-project-context'),
/**
Array all classes.
@property implementations
@type Array
import Ember from 'ember';
import FdAppStructTree from '../objects/fd-appstruct-tree';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import { translationMacro as t } from 'ember-i18n';
import FdWorkPanelToggler from '../mixins/fd-work-panel-toggler';
import { restorationNodeTree, findFreeNodeTreeID, findFreeNodeTreeNameIndex } from '../utils/fd-metods-for-tree';
import { getNewFormCaption, getNewFormDescription } from '../utils/fd-create-form-properties';
export default EditFormController.extend(FdWorkPanelToggler, {
/**
@property store
@type Service
*/
store: Ember.inject.service(),
/**
@property currentProjectContext
@type Service
*/
currentProjectContext: Ember.inject.service('fd-current-project-context'),
/**
Setting off for 'openProcessEditorForm' buttons.
import { computed } from '@ember/object';
import EditFormController from 'ember-flexberry/controllers/edit-form';
import FdFormUnsavedData from '../mixins/fd-form-unsaved-data';
export default EditFormController.extend(FdFormUnsavedData, {
parentRoute: 'fd-class-list-form',
header: computed.readOnly('model.name')
});
import EditFormController from 'ember-flexberry/controllers/edit-form';
export default EditFormController.extend({
parentRoute: 'fd-system-list-form',
});