Hide the filepicker button in readonly mode
This commit is contained in:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user