[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 = ''; public token: string = '';
// Http Client // Http Client
public http: HttpUtils = new HttpUtils(''); public static http: HttpUtils = new HttpUtils();
/** /**
* This is called when the instance is created. * 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 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'; public static GITHUB: string = 'https://github.com/HyDevelop/VeracrossAnalyzer.Client';
@@ -33,7 +33,7 @@ export default class OverallCourse extends Vue
*/ */
markAsRead(assignment: Assignment) 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 => .then(response =>
{ {
// Check success // Check success
-5
View File
@@ -4,11 +4,6 @@ export class HttpUtils
{ {
public token: string = ''; public token: string = '';
constructor (token: string)
{
this.token = token;
}
public post(node: string, body: any): Promise<any> public post(node: string, body: any): Promise<any>
{ {
// Add token // Add token