[DE] Refactoring: hide protect button when show history (#887)

This commit is contained in:
Julia Radzhabova 2021-05-18 18:18:05 +03:00 committed by GitHub
parent 2d4e237e75
commit 7eb2b34ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -413,9 +413,11 @@ define([
SetDisabled: function(disable) { SetDisabled: function(disable) {
var _btn_save = this.getButton('save'), var _btn_save = this.getButton('save'),
_btn_rename = this.getButton('rename'); _btn_rename = this.getButton('rename'),
_btn_protect = this.getButton('protect');
_btn_save[(disable || !this.mode.isEdit)?'hide':'show'](); _btn_save[(disable || !this.mode.isEdit)?'hide':'show']();
_btn_protect[(disable || !this.mode.isEdit)?'hide':'show']();
_btn_rename[(disable || !this.mode.canRename || this.mode.isDesktopApp) ?'hide':'show'](); _btn_rename[(disable || !this.mode.canRename || this.mode.isDesktopApp) ?'hide':'show']();
}, },