app.controller('settingsProfile' , function ($scope, $document, $sessionStorage, api) {
    $scope.$storage = $sessionStorage;
    $scope.imgSrc = 'assets/img/jobs.png';
    $scope.showName = 'Visningsnamn';
    $scope.userName = 'Username';
    $scope.yourEmail = 'namn.efternamn@exempel.com';
    $scope.yourInfo = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada, est vitae commodo dapibus, ipsum velit euismod nibh, sit amet efficitur justo est ac augue.';
    console.log($scope.lightTheme);
    $scope.test = function () {


    };

    $scope.updateSettings = function() {
        api.users.update().then(function(response) {
            $scope.$storage.user = response.data;
        });
    }
});

app.controller('settingsProfile' , function ($scope, $document, $sessionStorage, api) {
    $scope.$storage = $sessionStorage;

    $scope.resetSettings = function() {
        api.users.get($scope.$storage.user._id).then(function(response){
            $scope.$storage.user = response.data;
        });
    }

    $scope.updateSettings = function() {
        api.users.update().then(function(response) {
            $scope.$storage.user = response.data;
        });
    }
});

Reset settings form when not saving
Reset settings form when not saving
