ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/oldjs/services/bootstrap_tree_subscription_service.js

Summary

Maintainability
A
0 mins
Test Coverage
ManageIQ.angular.app.service('bootstrapTreeSubscriptionService', ['subscriptionService', function(subscriptionService) {
  this.subscribeToTreeUpdates = function(callback) {
    subscriptionService.subscribeToEventType('treeUpdated', callback);
  };

  this.subscribeToCancelClicks = function(callback) {
    subscriptionService.subscribeToEventType('cancelClicked', callback);
  };

  this.subscribeToDeselectTreeNodes = function(callback) {
    subscriptionService.subscribeToEventType('deselectTreeNodes', callback);
  };

  this.subscribeToSingleItemSelected = function(callback) {
    subscriptionService.subscribeToEventType('singleItemSelected', callback);
  };
}]);