maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Refactor LanguageSelector to be disabled when snippet is locked #410

Closed solkaz closed 7 years ago

solkaz commented 7 years ago

Description

This PR refactors the LanguageSelector and SnippetAreaToolbar components to disable selecting a language when a snippet has been locked. The SnippetAreaToolbar will pass its readOnly prop to its child LanguageSelector, which will then forward that to its underlying SelectField element.

Motivation and Context

Fixes #395

Checklist: