Source
742
742
url.setArgument('hostid', options.hostid);
743
743
url.setArgument('itemid', options.itemid);
744
744
url.setArgument('context', 'host');
745
745
746
746
config.url = url.getUrl();
747
747
}
748
748
749
749
items.push(config);
750
750
}
751
751
752
+
const execute = {
753
+
label: t('Execute now'),
754
+
disabled: !options.isExecutable
755
+
};
756
+
757
+
if (options.isExecutable) {
758
+
execute.clickCallback = function () {
759
+
jQuery(this).closest('.menu-popup').menuPopup('close', null);
760
+
761
+
view.checkNow(options.itemid);
762
+
};
763
+
}
764
+
765
+
items.push(execute);
766
+
752
767
return [{
753
768
label: t('Item'),
754
769
items: items
755
770
}];
756
771
}
757
772
758
773
/**
759
774
* Get menu popup item log section data.
760
775
*
761
776
* @param string options['backurl'] Url from where the popup menu was called.