We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f55714 commit ed43ae2Copy full SHA for ed43ae2
front-end/src/app/model/vaga.model.ts
@@ -6,4 +6,16 @@ export class Vaga {
6
labels: { name: string }[];
7
username: string;
8
password: string;
9
-}
+
10
+ private static labelsToHiding: string[] = ["job opportunity"];
11
12
+ public static getLabels(labels: { name: string }[] = []): string {
13
+ if (!labels) return "";
14
+ let labelMap = labels
15
+ .map((a) => a.name)
16
+ .filter((a) => Vaga.labelsToHiding.indexOf(a.toLowerCase()) == -1);
17
+ if (labelMap.length > 0) {
18
+ return labelMap.reduce((a, b) => a + ", " + b);
19
+ }
20
21
+}
0 commit comments