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,35 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'flaredown/mixins/authenticated-route-mixin';
const {
get,
set,
RSVP,
Route,
} = Ember;
export default Route.extend(AuthenticatedRouteMixin, {
beforeModel() {
this._super(...arguments);
const store = get(this, 'store');
if(store.peekAll('condition').length > 0){
store.unloadAll('condition');
}
},
model(params) {
var checkinId = params.checkin_id;
var stepId = `${this.routeName.split('.')[0]}-${params.step_key}`;
return RSVP.hash({
stepId,
checkin: this.store.findRecord('checkin', checkinId),
});
},
afterModel(model) {
set(this, 'stepsService.checkin', model.checkin);
},
});