mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Improve local storage and fix expediente task strature
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LoaderService {
|
||||
|
||||
private loadingList: {
|
||||
name: string
|
||||
}[] = []
|
||||
|
||||
constructor() { }
|
||||
|
||||
get loading(){
|
||||
return this.loadingList.length != 0
|
||||
}
|
||||
|
||||
push({name = ''}) {
|
||||
this.loadingList.push({
|
||||
name: name
|
||||
})
|
||||
}
|
||||
|
||||
pop({}) {
|
||||
this.loadingList.pop()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user