mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-09 07:19:00 +00:00
cleanup lists service
This commit is contained in:
@@ -4,30 +4,16 @@ import { Injectable } from '@angular/core';
|
|||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class ListsService {
|
export class ListsService {
|
||||||
public actionListIds: string[] = [];
|
public processorListIds: string[] = [];
|
||||||
public transformListIds: string[] = [];
|
|
||||||
public moduleListsId: string[] = [];
|
|
||||||
|
|
||||||
registerActionList(path: string | undefined) {
|
registerProcessorList(path: string | undefined) {
|
||||||
if (path === undefined) {
|
if (path === undefined) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const id = this.pathToId(path);
|
const id = this.pathToId(path);
|
||||||
if (!this.actionListIds.includes(id)) {
|
if (!this.processorListIds.includes(id)) {
|
||||||
this.actionListIds.push(id);
|
this.processorListIds.push(id);
|
||||||
}
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
registerTransformList(path: string | undefined) {
|
|
||||||
if (path === undefined) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
const id = this.pathToId(path);
|
|
||||||
if (!this.transformListIds.includes(id)) {
|
|
||||||
this.transformListIds.push(id);
|
|
||||||
}
|
}
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user