Skip to content

[MainUI] Multiple duplicated channels do not trigger modification indicator #4033

@matmai

Description

@matmai

The problem

Short: If more than one thing channels is duplicated the modifications can be lost without notice.

Long: If a thing channel is cloned by the "Duplicate Channel" functionality there is a save button on the right upper corner. After pressing this save button the user is redirected to the channels overview. But the duplicated channel was not saved. This happens just after pressing a second time on the save button on the channels overview. This is correctly indicated by the bullet indicator right to the channel name. If another channel is duplicated the modification indicator is not acitve any more. If the user does not press save a second time all the duplicated channels are lost. Furthermore any other duplicated channel, even on other things do not trigger the modification indicator again until a browser reload.

Expected behavior

The duplicated channel should be persisted/saved right after pressing the save button the duplicate channel page or the modification indicator should still be shown after duplicating another channel to make the user aware that changes could be lost.

Steps to reproduce

  1. Select a thing with a manually created channel
  2. Select a channel
  3. Use "Duplicate channel"
  4. Change values as desired
  5. Use "save" button on the upper right corner
  6. Select another channel
  7. Use "Duplicate channel"
  8. Change values as desired
  9. Use "save" button on the upper right corner
  10. Modification indicator disappeared
  11. Check that there is no modification warning by using the "back" button in the app

Your environment

openHAB 5.1.3
Release Build
Main UI Commit f18caf73

Browser console

Browser network traffic

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmain uiMain UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions