mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-20 16:20:48 +00:00
Removed unused files
This commit is contained in:
parent
9d8e8ca42e
commit
2ab96ab323
@ -1,25 +0,0 @@
|
||||
import {NodeContextMenuAction} from "../node-context-menu-action";
|
||||
import {Node} from "../../../cartography/shared/models/node.model";
|
||||
import {Server} from "../../models/server";
|
||||
import {NodeService} from "../../services/node.service";
|
||||
|
||||
|
||||
export class StartNodeAction implements NodeContextMenuAction {
|
||||
constructor(private server: Server, private nodeService: NodeService) {}
|
||||
|
||||
icon(node: Node) {
|
||||
return "play_arrow";
|
||||
}
|
||||
|
||||
label(node: Node) {
|
||||
return "Start";
|
||||
}
|
||||
|
||||
isVisible(node: Node) {
|
||||
return node.status === 'stopped';
|
||||
}
|
||||
|
||||
onClick(node: Node) {
|
||||
// this.nodeService.start()
|
||||
}
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
import {NodeContextMenuAction} from "../node-context-menu-action";
|
||||
import {Node} from "../../../cartography/shared/models/node.model";
|
||||
import {Server} from "../../models/server";
|
||||
import {Project} from "../../models/project";
|
||||
import {NodeService} from "../../services/node.service";
|
||||
|
||||
|
||||
export class StopNodeAction implements NodeContextMenuAction {
|
||||
constructor(server: Server, nodeService: NodeService) {}
|
||||
|
||||
icon(node: Node) {
|
||||
return "stop";
|
||||
}
|
||||
|
||||
label(node: Node) {
|
||||
return "Stop";
|
||||
}
|
||||
|
||||
isVisible(node: Node) {
|
||||
return node.status === 'started';
|
||||
}
|
||||
|
||||
onClick(node: Node) {
|
||||
|
||||
}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
import {Node} from "../../cartography/shared/models/node.model";
|
||||
|
||||
export interface NodeContextMenuAction {
|
||||
icon(node: Node): string;
|
||||
label(node: Node): string;
|
||||
isVisible(node: Node): boolean;
|
||||
onClick(node: Node);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user