diff options
author | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2021-03-03 18:43:01 +0300 |
---|---|---|
committer | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2021-03-03 18:43:01 +0300 |
commit | bc6d32dedff381afb9ab2738e3ebff241e227962 (patch) | |
tree | ec41c6fc0c66f88157eda0c45151fe30f48013d2 /ui | |
parent | e76167f9b646640b008f3ebb7218e68d459a9efa (diff) |
..F....... [ZBXNEXT-6309] fixed graph download
Diffstat (limited to 'ui')
-rw-r--r-- | ui/js/menupopup.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/js/menupopup.js b/ui/js/menupopup.js index a279d8d95fb..8f3e19bd543 100644 --- a/ui/js/menupopup.js +++ b/ui/js/menupopup.js @@ -589,7 +589,7 @@ function getMenuPopupWidgetActions(options, trigger_elmnt) { editMode = ZABBIX.Dashboard.isEditMode(), widget = ZABBIX.Dashboard.getWidgetsBy('uniqueid', options.widget_uniqueid).pop(), widgetid = widget.widgetid, - loading = (!widget['ready'] || widget['content_body'].find('.is-loading').length > 0), + loading = (!widget.isReady() || widget.content_body.find('.is-loading').length > 0), widget_actions = [], menu; @@ -645,7 +645,7 @@ function getMenuPopupWidgetActions(options, trigger_elmnt) { }, refreshCallback: function(widget) { if (widget['widgetid'] == widgetid && options.download) { - this.disabled = !widget['ready']; + this.disabled = !widget.isReady(); } } }); |