Pleasing jshint gods
This commit is contained in:
parent
1e748a64d7
commit
79353c142a
|
@ -8,6 +8,7 @@ angular.module('lemur')
|
||||||
PluginService.getByType('destination').then(function (plugins) {
|
PluginService.getByType('destination').then(function (plugins) {
|
||||||
$scope.plugins = plugins;
|
$scope.plugins = plugins;
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.save = function (destination) {
|
$scope.save = function (destination) {
|
||||||
DestinationService.create(destination).then(function () {
|
DestinationService.create(destination).then(function () {
|
||||||
$modalInstance.close();
|
$modalInstance.close();
|
||||||
|
@ -27,10 +28,10 @@ angular.module('lemur')
|
||||||
PluginService.getByType('destination').then(function (plugins) {
|
PluginService.getByType('destination').then(function (plugins) {
|
||||||
$scope.plugins = plugins;
|
$scope.plugins = plugins;
|
||||||
_.each($scope.plugins, function (plugin) {
|
_.each($scope.plugins, function (plugin) {
|
||||||
if (plugin.slug == $scope.destination.pluginName) {
|
if (plugin.slug === $scope.destination.pluginName) {
|
||||||
plugin.pluginOptions = $scope.destination.destinationOptions;
|
plugin.pluginOptions = $scope.destination.destinationOptions;
|
||||||
$scope.destination.plugin = plugin;
|
$scope.destination.plugin = plugin;
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue