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