Merge pull request #4764 from pengpengshui/addLock

Fix issue about read only mode warning undisappear about #4741
This commit is contained in:
pengpengshui 2018-04-25 13:17:11 +08:00 committed by GitHub
commit 888379dfb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
this.msgHandler.handleReadOnly();
}
if (changes['read_only'] && changes['read_only'].toString() === "false") {
if (changes && changes['read_only'] === false) {
this.msgHandler.clear();
}