Skip to content
Snippets Groups Projects

Form for measured quantities

1 unresolved thread

This MR refactors the already splitted property page. It addresses issues with opening panels (especially those with an index of 0).

It also uses a more simple approach regarding to nuxt childs. Currently it just handles one possible sub-page for the measured quantities (the edit page).

Hint: Currently the solution with the apply button works, but it feels like a really dirty hack. If we can improve this, I would be really happy with the way it works now.

Edited by Nils Brinckmann

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Nils Brinckmann added 2 commits

    added 2 commits

    • df0500ca - Fixed to "remove" wording for deleting device properties
    • b694fc23 - Re-added ref to property form

    Compare with previous version

    By Nils Brinckmann on 2021-03-24T14:55:20 (imported from GitLab)

  • added 1 commit

    Compare with previous version

    By Nils Brinckmann on 2021-03-24T14:56:37 (imported from GitLab)

  • added 1 commit

    Compare with previous version

    By Nils Brinckmann on 2021-03-24T14:58:31 (imported from GitLab)

  • added 1 commit

    • 8e572bea - Removed active css class for cancel button

    Compare with previous version

    By Nils Brinckmann on 2021-03-24T15:35:25 (imported from GitLab)

  • Nils Brinckmann resolved all threads

    resolved all threads

    By Nils Brinckmann on 2021-03-24T15:42:12 (imported from GitLab)

  • Nils Brinckmann added 4 commits

    added 4 commits

    • 8e572bea...de11048d - 3 commits from branch feature-restructure-frontend-properties
    • b04477bb - Merge branch 'feature-restructure-frontend-properties' into...

    Compare with previous version

    By Nils Brinckmann on 2021-03-24T15:43:13 (imported from GitLab)

    • I'm still not that happy with the logic for the saving of the measured quantities - at least with the part of triggering the save method in the measuredquantities.vue file.

      Relying on the save method of this child component is a hacky from my point of view.

      But I think it is cleaner to work with the copy to edit the fields - and only emitting the value once it is saved. I like how this is done in the child component. But I only don't like how to trigger this from the parent component.

      By Nils Brinckmann on 2021-03-25T09:28:43 (imported from GitLab)

      Edited by Nils Brinckmann
    • Hm, I was also thinking about how to cleanly solve this with Vue, but there are only a few options, beeing refs one of them. Another option would be to pass a property to the child, which reacts to it (saves the measured quantity) and immediately triggers an update to this property - but I doubt that this is more intuitive for the developer... So I'm fine with it.

      By Marc Hanisch on 2021-03-25T09:28:43 (imported from GitLab)

    • Please register or sign in to reply
  • Nils Brinckmann approved this merge request

    approved this merge request

    By Marc Hanisch on 2021-03-25T09:28:48 (imported from GitLab)

  • mentioned in issue #64 (closed)

    By Nils Brinckmann on 2021-03-25T10:03:00 (imported from GitLab)

  • added 1 commit

    • 654629e0 - Renamed property in configuration to measured quantity

    Compare with previous version

    By Nils Brinckmann on 2021-03-25T10:06:29 (imported from GitLab)

  • Nils Brinckmann mentioned in commit 1af3b514

    mentioned in commit 1af3b514

    By Nils Brinckmann on 2021-03-25T12:39:18 (imported from GitLab)

  • Please register or sign in to reply
    Loading