jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

Editing-enable button is not hidden in the composition item editor if the master editor is in view mode #670

Closed knstvk closed 2 years ago

knstvk commented 2 years ago

See https://www.cuba-platform.ru/discuss/t/dobavit-po-umolchaniyu-dialogovoe-okno-s-podtverzhdeniem-sohraneniya-izmenenij/3324/9?u=krivopustov

Perhaps we should disable "Enable editing" action for composition item if master is in the view mode.

QA

  1. Download demo project: demo.zip
  2. Open Application -> First store entities -> Films
  3. Select record with "test" name and click on "View" button
  4. In the editor select "Japan" country and click on "View" button. Country editor shouldn't show "Enable editing" button.
  5. Click cancel.
  6. On the Film editor click on "Enable editing".
  7. Select "Japan" country again and click on "View" button. Country editor should show "Enable editing" button.
reznikova21 commented 2 years ago

1.2.0-SNAPSHOT - verified