[F] Make corrections after reverts
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user