File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed
Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 1- import { VagaService } from "src/app/ service/vaga.service" ;
1+ import { VagaService } from "@ service/vaga.service" ;
22import { Router , ActivatedRoute } from "@angular/router" ;
33import { Component , OnInit } from "@angular/core" ;
4- import { Vaga } from "src/app/ model/vaga.model" ;
4+ import { Vaga } from "@ model/vaga.model" ;
55import { DomSanitizer } from "@angular/platform-browser" ;
66import { marked } from "marked" ;
77import { AlertController , LoadingController } from "@ionic/angular" ;
@@ -74,12 +74,7 @@ export class CadastroVagaPage implements OnInit {
7474 }
7575
7676 getLabels ( labels ) {
77- if ( labels ) {
78- let labelMap = labels . map ( ( a ) => a . name ) ;
79- if ( labelMap . length > 0 ) {
80- return labelMap . reduce ( ( a ) => a + ", " ) ;
81- }
82- }
77+ return Vaga . getLabels ( labels ) ;
8378 }
8479
8580 private applyDefaultOptions ( ) {
Original file line number Diff line number Diff line change 1- import { Vaga } from "./../../ model/vaga.model" ;
1+ import { Vaga } from "@ model/vaga.model" ;
22import { Component , OnInit } from "@angular/core" ;
3- import { VagaService } from "src/app/ service/vaga.service" ;
3+ import { VagaService } from "@ service/vaga.service" ;
44import { Router } from "@angular/router" ;
5- import { DomSanitizer } from "@angular/platform-browser" ;
65import { AlertController , LoadingController } from "@ionic/angular" ;
76
87@Component ( {
@@ -98,11 +97,6 @@ export class VagasPage implements OnInit {
9897 }
9998
10099 getLabels ( labels : any [ ] ) {
101- if ( labels ) {
102- let labelMap = labels . map ( ( a ) => a . name ) ;
103- if ( labelMap . length > 0 ) {
104- return labelMap . reduce ( ( a ) => a + ", " ) ;
105- }
106- }
100+ return Vaga . getLabels ( labels ) ;
107101 }
108102}
You can’t perform that action at this time.
0 commit comments