[F] Make corrections after reverts

This commit is contained in:
Hykilpikonna
2019-10-13 18:23:25 -04:00
parent c991b75384
commit d077818508
4 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export default class App extends Vue
public token: string = '';
// Http Client
public http: HttpUtils = new HttpUtils('');
public static http: HttpUtils = new HttpUtils();
/**
* This is called when the instance is created.
+1 -1
View File
@@ -8,7 +8,7 @@ export default class Constants
*/
public static API_URL: string = 'https://va.hydev.org/api';
public static VERSION: string = '0.3.2.452';
public static VERSION: string = '0.3.3.502';
public static GITHUB: string = 'https://github.com/HyDevelop/VeracrossAnalyzer.Client';
@@ -33,7 +33,7 @@ export default class OverallCourse extends Vue
*/
markAsRead(assignment: Assignment)
{
App.http.post('/mark-as-read', {csrf: App.http.csrf, scoreId: assignment.scoreId})
App.http.post('/mark-as-read', {scoreId: assignment.scoreId})
.then(response =>
{
// Check success
-5
View File
@@ -4,11 +4,6 @@ export class HttpUtils
{
public token: string = '';
constructor (token: string)
{
this.token = token;
}
public post(node: string, body: any): Promise<any>
{
// Add token