Skip to content

Draft: Updates location actions using vuex

I tried my best updating/simplifying the static and dynamic location actions but could not complete the work.

Here are some stuff still missing, that need to be done:

  • pages/configurations/_configurationId/locations.vue
    • try-catch in created()
  • serializers/jsonapi/DynamicLocationBeginActionSerializer.ts
    • add serialization for the device properties x,y,z
    • therefore you probably need to update services/sms/ConfigurationApi.ts:findRelatedDynamicLocationBeginActions() to include the information about that properties
  • the method buildConfigurationTree of modelUtils/mountHelpers.ts is currently not working, as we load the configuration and actions separately
    • this method is currently used in location in following files:
      • pages/configurations/_configurationId/locations/dynamic-location-begin-actions/new.vue
      • pages/configurations/_configurationId/locations/dynamic-location-begin-actions/_actionId/edit.vue
      • pages/configurations/_configurationId/locations/dynamic-location-end-actions/new.vue
      • pages/configurations/_configurationId/locations/dynamic-location-end-actions/_actionId/edit.vue
    • the method is used there to provide information about the currently active device (devices of the hierarchy tree of the selected date)
      • this information should be provided via store using the new controller methods (see: Link)

//Reviewers: @marc.hanisch ,@tim.eder

Edited by Tobias Kuhnert

Merge request reports

Loading