app/javascript/oldjs/controllers/buttons/button_group_controller.js
ManageIQ.angular.app.controller('buttonGroupController', ['$scope', 'miqService', function($scope, miqService) {
const init = function() {
$scope.saveable = miqService.saveable;
$scope.reactFormDirty = false;
};
init();
listenToRx((event) => {
if (event.name === 'dirty') {
$scope.reactFormDirty = true;
$scope.$apply();
} else {
$scope.reactFormDirty = false;
$scope.$apply();
}
});
}]);