sajaniemi_variable_dataset_large / pool /shard008 /JavaScript /0050223_weather-energy-delete-dialog.controller.js
Pendigard's picture
Upload folder using huggingface_hub (part 93)
7f88cfb verified
Raw History Blame Contribute Delete
778 Bytes
(function() {
'use strict';
angular
.module('weatheropendataApp')
.controller('WeatherEnergyDeleteController',WeatherEnergyDeleteController);
WeatherEnergyDeleteController.$inject = ['$uibModalInstance', 'entity', 'WeatherEnergy'];
function WeatherEnergyDeleteController($uibModalInstance, entity, WeatherEnergy) {
var vm = this;
vm.weatherEnergy = entity;
vm.clear = clear;
vm.confirmDelete = confirmDelete;
function clear () {
$uibModalInstance.dismiss('cancel');
}
function confirmDelete (id) {
WeatherEnergy.delete({id: id},
function () {
$uibModalInstance.close(true);
});
}
}
})();