Version "Settings" tab does not show up

Description

Steps to reproduce

1. FAS login on "translate.zanata.org" instance with "maintainer" permissions

2. The following URL shows a gray page

https://translate.zanata.org/iteration/view/nethcti-docs/v3/settings?dswid=-8371

Expected

The Settings page is shown. I want to modify Languages for a specific version.

Workaround

Open devtools on Chrome browser, add "is-active" class to LI element corresponding to the Settings panel. The panel is shown and works correctly.

Environment

None

Activity

Show:
Davide Principi
August 25, 2017, 10:05 AM

If I create a new Version the "Settings" tab is shown.

David Mason
August 28, 2017, 12:44 AM

I can reproduce this.

Cause

1. There is a document in the project named "settings"
2. Our code uses the document name as the id for document list items
3. Settings tab also has id 'settings', so 2 elements on page have the same id
4. Class 'is-active' is applied to the document item "settings" instead of the settings tab

Workaround

a little quicker than manually adding the class in the DOM view:

open the JavaScript console and run the following:

Fix

Change document list to either stop using document name as id, or prefix it with something that will not clash with any other id on the page.

Ready for Release

Assignee

Alex Eng

Reporter

Davide Principi

Labels

None

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

Priority

unspecified
Configure