2023 walkthrough changes

This commit is contained in:
2023-11-28 14:30:02 -05:00
parent 0b236e142f
commit a4321d0a23
40 changed files with 314 additions and 231 deletions
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import Ember from 'ember';
export default Ember.Component.extend({
@@ -19,11 +19,9 @@ export default Ember.Component.extend({
return this.modal('project/edit-project-scenario', {
model: project_scenario,
closeOnOverlay: false,
destroy_callback: (function(_this) {
return function() {
return _this.set('active_project_scenario', null);
};
})(this)
destroy_callback: () => {
return this.set('active_project_scenario', null);
}
});
}
}
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import Ember from 'ember';
export default Ember.Component.extend({
@@ -8,6 +8,7 @@ export default Ember.Component.extend({
project_instance_action: null,
value_type: Ember.computed.alias('project_instance_action.workflow_action_definition.value_type'),
save: function() {},
// https://stackoverflow.com/questions/26967855/handling-click-and-doubleclick-on-same-view-in-emberjs
doubleClick: function() {
var eventIO;
eventIO = this.get('eventIO');
@@ -16,12 +17,17 @@ export default Ember.Component.extend({
this.set('eventIO', null);
}
if (this.get('value_type') === 'boolean') {
//@toggleProperty 'project_instance_action.boolean_value'
//@get('project_instance_action').save()
// always modal, otherwise implement authorizations overhere
return this.modal('project/edit-instance-action', {
model: this.get('project_instance_action'),
save: this.save,
close: this.save
});
} else {
// fallback to single click behaviour
return this.modal('project/edit-instance-action', {
model: this.get('project_instance_action'),
save: this.save,
@@ -52,3 +58,7 @@ export default Ember.Component.extend({
}
}
});
//edit_record: ->
// @modal 'project/edit-instance-action', model: @get('project_instance_action')
// false