[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({
|
||||
api: this.api,
|
||||
isUpdating: this.externalData.isUpdating,
|
||||
canRequestReferenceData: this.toolbar.mode.canRequestReferenceData,
|
||||
handler: function(result) {
|
||||
Common.NotificationCenter.trigger('edit:complete');
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ define([
|
|||
this.api = options.api;
|
||||
this.handler = options.handler;
|
||||
this.isUpdating = options.isUpdating || false;
|
||||
this.canRequestReferenceData = options.canRequestReferenceData || false;
|
||||
this.linkStatus = [];
|
||||
this.wrapEvents = {
|
||||
onUpdateExternalReferenceList: _.bind(this.refreshList, this)
|
||||
|
@ -122,6 +123,7 @@ define([
|
|||
cls: 'btn-text-split-default auto',
|
||||
caption: this.textUpdate,
|
||||
split: true,
|
||||
visible: !!this.canRequestReferenceData,
|
||||
menu : new Common.UI.Menu({
|
||||
style: 'min-width:100px;',
|
||||
items: [
|
||||
|
|
Loading…
Reference in a new issue