25 lines
730 B
JavaScript
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;
|
|
};
|
|
}
|
|
};
|
|
});
|
|
}());
|