Skip to content

Commit 00bf1ad

Browse files
author
Joshua Baert
committed
Submit button with score change and takes you to solutions page
1 parent 42b4524 commit 00bf1ad

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/components/menus/menuCtrl.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
angular.module('app').controller('menuCtrl', function($scope, $state, mainService, $stateParams){
2-
$scope.getUser = () => {
3-
mainService.getUser().then(response => {
4-
console.log(response.data);
5-
})
6-
};
2+
$scope.getUser = () => {
3+
mainService.getUser().then(response => {
4+
mainService.user = response.data;
5+
mainService.user.kyu_level = mainService.rankCalculator(mainService.user);
6+
$scope.user = mainService.user
7+
})
8+
};
9+
10+
$scope.getUser();
711
});

src/components/training/training.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ $white: white;
6565
height: 30px;
6666
width: 50px;
6767
margin-right: 5px;
68+
}
6869

6970
.selection-div {
7071
display: flex;

0 commit comments

Comments
 (0)