mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Cleaning up jargon and minor code changes
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
angular.module('app').directive('componentDetails', [function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
scope:{
|
||||
c: '=',
|
||||
lbl: '=',
|
||||
opts: '='
|
||||
},
|
||||
templateUrl: 'views/component.html'
|
||||
};
|
||||
}]);
|
||||
@@ -9,8 +9,8 @@ angular.module('app')
|
||||
link: function (scope, element, attributes) {
|
||||
scope.$r = $r;
|
||||
|
||||
scope.toggle = function(component) {
|
||||
component.enabled = !component.enabled;
|
||||
scope.toggle = function(slot) {
|
||||
slot.enabled = !slot.enabled;
|
||||
scope.ship.updateTotals();
|
||||
}
|
||||
}
|
||||
|
||||
11
app/js/directives/directive-slot-details.js
Normal file
11
app/js/directives/directive-slot-details.js
Normal file
@@ -0,0 +1,11 @@
|
||||
angular.module('app').directive('slotDetails', function () {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope:{
|
||||
c: '=',
|
||||
lbl: '=',
|
||||
opts: '='
|
||||
},
|
||||
templateUrl: 'views/slot.html'
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user