sweetp/dashboard

View on GitHub
app/scripts/dashboardApp/windows/commitWindow.ctrl.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

angular.module('dashboardApp')
    .controller('WindowCommitCtrl', function($scope, $window, $log) {
        $scope.project = $window.sweetpWindowCommunication.project;
        $scope.onSuccess = function (data) {
            $log.debug('success: ', data.service);

            // close window
            chrome.app.window.current().close();
        };
});