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