SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/console/preset-actions.js

25 lines
730 B
JavaScript

"use strict";
(function () {
'use strict';
angular.module('consoleModule')
.directive('presetActions', function () {
return {
restrict: 'E',
templateUrl: 'views/console/preset-actions.html',
link: function (scope) {
scope.options = false;
scope.isDefault = false;
scope.setDefault = function () {
scope.isDefault = true;
};
scope.showOptions = function () {
scope.options = true;
};
scope.hideOptions = function () {
scope.options = false;
};
}
};
});
}());