|
|
|
@ -21,6 +21,7 @@ import { ISprinklersDevice } from "@common/httpApi";
@@ -21,6 +21,7 @@ import { ISprinklersDevice } from "@common/httpApi";
|
|
|
|
|
import log from "@common/logger"; |
|
|
|
|
import { Program, SprinklersDevice } from "@common/sprinklersRpc"; |
|
|
|
|
import { action } from "mobx"; |
|
|
|
|
import classNames = require("classnames"); |
|
|
|
|
|
|
|
|
|
interface ProgramPageProps |
|
|
|
|
extends RouteComponentProps<{ deviceId: string; programId: string }> { |
|
|
|
@ -173,8 +174,10 @@ class ProgramPage extends React.Component<ProgramPageProps> {
@@ -173,8 +174,10 @@ class ProgramPage extends React.Component<ProgramPageProps> {
|
|
|
|
|
|
|
|
|
|
const { running, enabled, schedule, sequence } = program; |
|
|
|
|
|
|
|
|
|
const className = classNames("programEditor", editing && "editing"); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<Modal open onClose={this.close} className="programEditor"> |
|
|
|
|
<Modal open onClose={this.close} className={className}> |
|
|
|
|
<Modal.Header>{this.renderName(program)}</Modal.Header> |
|
|
|
|
<Modal.Content> |
|
|
|
|
<Form> |
|
|
|
|