mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-31 10:58:59 +00:00
cleanup file names
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ListsService {
|
||||
public processorListIds: string[] = [];
|
||||
|
||||
registerProcessorList(path: string | undefined) {
|
||||
if (path === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
const id = this.pathToId(path);
|
||||
if (!this.processorListIds.includes(id)) {
|
||||
this.processorListIds.push(id);
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
pathToId(path: string) {
|
||||
return path.replaceAll('/', '.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user