Bug 888096

Summary: [WebTrans] project become read only with editor options panel open will still allow user to change editor options
Product: [Retired] Zanata Reporter: Patrick Huang <pahuang>
Component: Component-Logic, UsabilityAssignee: Patrick Huang <pahuang>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: developmentCC: zanata-bugs
Target Milestone: ---   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.1-SNAPSHOT (20121219-0033) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 04:06:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Huang 2012-12-18 00:49:08 UTC
Description of problem:
When user is on translation editor and with editor options panel open, change project iteration to read only from another browser session. Buttons will be hidden but editor options panel is still visible and accessible. User then is able to re-enable display buttons and copy from source etc to trigger a save (which will fail on server).

Version-Release number of selected component (if applicable):
2.0.3-

How reproducible:
Always

Steps to Reproduce:
1. Open translation editor and open editor options panel
2. Open another browser tab and go to the same project iteration and change iteration to read only
3. Go back to original tab and noticed the editor become read only but editor options is still visible
4. Enable 'Editor buttons' option and buttons are shown again
5. Click on 'Copy from source' button and source will be copied into editor!!
6. Navigate to a different row and it will trigger a save
  
Actual results:
Save will fail eventually and bring up notification panel and by this time the editor options panel is hidden as per expected.

Expected results:
Once workspace become read only, editor options panel should become invisible immediately so that user won't be able to mess with the UI. 

Additional info:

Comment 1 Patrick Huang 2012-12-18 02:02:55 UTC
committed into master:
https://github.com/zanata/zanata/commit/d3573bc5f2cad89cdd12f50d0fdbaecf0324ab6b

Comment 2 Ding-Yi Chen 2012-12-19 04:15:38 UTC
VERIFIED with Zanata version 2.1-SNAPSHOT (20121219-0033)