Index: ssts-web/src/main/webapp/ext/UploadDialog/Ext.ux.UploadDialog.js =================================================================== diff -u -r40987 -r40993 --- ssts-web/src/main/webapp/ext/UploadDialog/Ext.ux.UploadDialog.js (.../Ext.ux.UploadDialog.js) (revision 40987) +++ ssts-web/src/main/webapp/ext/UploadDialog/Ext.ux.UploadDialog.js (.../Ext.ux.UploadDialog.js) (revision 40993) @@ -887,13 +887,15 @@ scope: this })); - tb.x_buttons.camera = tb.addButton({ - text: this.i18n.camera_btn_text, - tooltip: this.i18n.camera_btn_tip, - iconCls: 'ext-ux-uploaddialog-addbtn', - handler: this.onCameraButtonClick, - scope: this - }); + if (this.params && this.params.imageType) { + tb.x_buttons.camera = tb.addButton({ + text: this.i18n.camera_btn_text, + tooltip: this.i18n.camera_btn_tip, + iconCls: 'ext-ux-uploaddialog-addbtn', + handler: this.onCameraButtonClick, + scope: this + }); + } tb.x_buttons.remove = tb.addButton({ text: this.i18n.remove_btn_text,