[SSE] Hide update button when cannot request reference data
This commit is contained in:
parent
17ce2ce7f0
commit
061a5c6a2b
|
@ -487,6 +487,7 @@ define([
|
||||||
this.externalLinksDlg = (new SSE.Views.ExternalLinksDlg({
|
this.externalLinksDlg = (new SSE.Views.ExternalLinksDlg({
|
||||||
api: this.api,
|
api: this.api,
|
||||||
isUpdating: this.externalData.isUpdating,
|
isUpdating: this.externalData.isUpdating,
|
||||||
|
canRequestReferenceData: this.toolbar.mode.canRequestReferenceData,
|
||||||
handler: function(result) {
|
handler: function(result) {
|
||||||
Common.NotificationCenter.trigger('edit:complete');
|
Common.NotificationCenter.trigger('edit:complete');
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,7 @@ define([
|
||||||
this.api = options.api;
|
this.api = options.api;
|
||||||
this.handler = options.handler;
|
this.handler = options.handler;
|
||||||
this.isUpdating = options.isUpdating || false;
|
this.isUpdating = options.isUpdating || false;
|
||||||
|
this.canRequestReferenceData = options.canRequestReferenceData || false;
|
||||||
this.linkStatus = [];
|
this.linkStatus = [];
|
||||||
this.wrapEvents = {
|
this.wrapEvents = {
|
||||||
onUpdateExternalReferenceList: _.bind(this.refreshList, this)
|
onUpdateExternalReferenceList: _.bind(this.refreshList, this)
|
||||||
|
@ -122,6 +123,7 @@ define([
|
||||||
cls: 'btn-text-split-default auto',
|
cls: 'btn-text-split-default auto',
|
||||||
caption: this.textUpdate,
|
caption: this.textUpdate,
|
||||||
split: true,
|
split: true,
|
||||||
|
visible: !!this.canRequestReferenceData,
|
||||||
menu : new Common.UI.Menu({
|
menu : new Common.UI.Menu({
|
||||||
style: 'min-width:100px;',
|
style: 'min-width:100px;',
|
||||||
items: [
|
items: [
|
||||||
|
|
Loading…
Reference in a new issue