diff --git a/src/app/shared/node-context-menu/actions/start-node-action.ts b/src/app/shared/node-context-menu/actions/start-node-action.ts deleted file mode 100644 index 7ea20ffa..00000000 --- a/src/app/shared/node-context-menu/actions/start-node-action.ts +++ /dev/null @@ -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() - } -} diff --git a/src/app/shared/node-context-menu/actions/stop-node-action.ts b/src/app/shared/node-context-menu/actions/stop-node-action.ts deleted file mode 100644 index cb6a6588..00000000 --- a/src/app/shared/node-context-menu/actions/stop-node-action.ts +++ /dev/null @@ -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) { - - } -} diff --git a/src/app/shared/node-context-menu/node-context-menu-action.ts b/src/app/shared/node-context-menu/node-context-menu-action.ts deleted file mode 100644 index 5a415d84..00000000 --- a/src/app/shared/node-context-menu/node-context-menu-action.ts +++ /dev/null @@ -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); -}