mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-02 16:52:50 +00:00
13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
import { Injectable } from "@angular/core";
|
|
|
|
import { DataSource } from "./datasource";
|
|
import { Link} from "../../models/link";
|
|
|
|
|
|
@Injectable()
|
|
export class LinksDataSource extends DataSource<Link> {
|
|
protected findIndex(link: Link) {
|
|
return this.data.findIndex((l: Link) => l.link_id === link.link_id);
|
|
}
|
|
}
|