Hide the filepicker button in readonly mode
This commit is contained in:
parent
51f1be9f7a
commit
bd422178c4
@ -360,6 +360,7 @@ define([
|
||||
CodeMirror.configureTheme();
|
||||
}
|
||||
|
||||
if (!readOnly) {
|
||||
var fileDialogCfg = {
|
||||
onSelect: function (data) {
|
||||
if (data.type === 'file') {
|
||||
@ -381,7 +382,7 @@ define([
|
||||
};
|
||||
common.openFilePicker(pickerCfg);
|
||||
}).appendTo($rightside);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
config.onReady = function (info) {
|
||||
|
||||
@ -494,6 +494,7 @@ define([
|
||||
|
||||
CodeMirror.configureTheme();
|
||||
|
||||
if (!readOnly) {
|
||||
var fileDialogCfg = {
|
||||
onSelect: function (data) {
|
||||
if (data.type === 'file') {
|
||||
@ -515,6 +516,7 @@ define([
|
||||
};
|
||||
common.openFilePicker(pickerCfg);
|
||||
}).appendTo($rightside);
|
||||
}
|
||||
|
||||
metadataMgr.onChange(function () {
|
||||
var md = metadataMgr.getMetadata();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user