parent
7f636f6c38
commit
f50abd8640
|
@ -26,6 +26,8 @@ export default class ListModel extends AbstractModel {
|
|||
|
||||
////////
|
||||
// Helpers
|
||||
//////
|
||||
|
||||
sortTasks() {
|
||||
if (this.tasks === null || this.tasks === []) {
|
||||
return
|
||||
|
|
|
@ -7,6 +7,8 @@ export default class AbstractService {
|
|||
|
||||
/////////////////////////////
|
||||
// Initial variable definitions
|
||||
///////////////////////////
|
||||
|
||||
http = null
|
||||
loading = false
|
||||
paths = {
|
||||
|
@ -18,6 +20,7 @@ export default class AbstractService {
|
|||
|
||||
/////////////
|
||||
// Service init
|
||||
///////////
|
||||
|
||||
/**
|
||||
* The abstract constructor.
|
||||
|
@ -47,6 +50,7 @@ export default class AbstractService {
|
|||
|
||||
/////////////////////
|
||||
// Global error handler
|
||||
///////////////////
|
||||
|
||||
/**
|
||||
* Handles the error and rejects the promise.
|
||||
|
@ -60,6 +64,7 @@ export default class AbstractService {
|
|||
|
||||
/////////////////
|
||||
// Helper functions
|
||||
///////////////
|
||||
|
||||
/**
|
||||
* Returns an object with all route parameters and their values.
|
||||
|
@ -120,6 +125,7 @@ export default class AbstractService {
|
|||
|
||||
///////////////
|
||||
// Global actions
|
||||
/////////////
|
||||
|
||||
/**
|
||||
* Performs a get request to the url specified before.
|
||||
|
|
Reference in New Issue
Block a user