1-Edited New Event page. 2-Changed Gabinete-Digital workkflow. 3-Changed App Name. Added Expediente View

This commit is contained in:
Tiago Kayaya
2020-08-19 23:47:11 +01:00
parent d8a6f73878
commit ffa9ecd1fe
19 changed files with 389 additions and 201 deletions
-17
View File
@@ -11,8 +11,6 @@ import { Observable } from 'rxjs';
})
export class EventsService {
/* Set events */
private eventos: Event[];
private events: Event[] = [
{
EventId: '1',
@@ -71,21 +69,6 @@ export class EventsService {
return this.http.get<Event>(`${url + ev}`, this.options)
}
getAllEvents(){
//Return a copy of the events in my array
console.log("All eventes loaded");
const options = { headers: {'Authorization': 'Basic cGF1bG8ucGludG86dGFidGVzdGVAMDA2'}};
axios.get(this.url, options)
.then((response) => {
console.log(this.eventos);
this.eventos = response.data;
console.log(this.eventos);
return this.events;
});
return this.eventos;
//return [...this.events];
}
getStaticEvent(eventId: string){
return {
// The find() function looks for an event in a array and return true if found