[SSE] Hide update button when cannot request reference data

This commit is contained in:
Julia Radzhabova 2022-12-15 17:13:40 +03:00
parent 17ce2ce7f0
commit 061a5c6a2b
2 changed files with 3 additions and 0 deletions

View file

@ -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');
}

View file

@ -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: [