added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
import Ember from 'ember';
const {
get,
set,
Component,
computed: { alias },
} = Ember;
export default Component.extend({
classNames: ['hbi-step'],
checkin: alias('parentView.model.checkin'),
didReceiveAttrs() {
this._super(...arguments);
const checkin = get(this, 'checkin');
const hbi = get(checkin, 'harveyBradshawIndex');
set(this, 'hbi', hbi || get(this, 'store').createRecord('harveyBradshawIndex', { checkin }));
},
actions: {
save() {
get(this, 'hbi')
.save()
.then(() => this.get('chartsVisibilityService').refresh());
},
goBack() {
this.get('onGoBack')();
},
selectOption(field, option) {
set(this, `hbi.${field}`, option.value);
},
completeStep() {
this.get('onStepCompleted')();
},
},
});