redash/client/app/pages/destinations/list.js

20 lines
460 B
JavaScript
Raw Normal View History

2016-11-09 12:47:13 +00:00
import template from './list.html';
function DestinationsCtrl($scope, $location, toastr, currentUser, Events, Destination) {
Events.record('view', 'page', 'admin/destinations');
2016-11-09 12:47:13 +00:00
$scope.destinations = Destination.query();
}
export default function (ngModule) {
ngModule.controller('DestinationsCtrl', DestinationsCtrl);
return {
'/destinations': {
template,
controller: 'DestinationsCtrl',
2016-11-27 13:49:17 +00:00
title: 'Destinations',
2016-11-09 12:47:13 +00:00
},
};
}