diff --git a/app/frontend/Components/Dropdowns/ProtocolDropdown.tsx b/app/frontend/Components/Dropdowns/ProtocolDropdown.tsx
new file mode 100644
index 0000000..0855026
--- /dev/null
+++ b/app/frontend/Components/Dropdowns/ProtocolDropdown.tsx
@@ -0,0 +1,9 @@
+import React from 'react'
+
+const ProocolDropdown = () => {
+ return (
+
ProocolDropdown
+ )
+}
+
+export default ProocolDropdown
diff --git a/app/frontend/Pages/Controls/Form.tsx b/app/frontend/Pages/Controls/Form.tsx
index f33617d..a3a5c1c 100644
--- a/app/frontend/Pages/Controls/Form.tsx
+++ b/app/frontend/Pages/Controls/Form.tsx
@@ -23,6 +23,8 @@ const emptyControl: Partial = {
}
const ControlForm = ({ method = 'post', control, ...props }: IControlFormProps) => {
+ console.log({ control })
+
return (
diff --git a/app/models/protocols_command.rb b/app/models/protocols_command.rb
index cdfd532..be0bd6d 100644
--- a/app/models/protocols_command.rb
+++ b/app/models/protocols_command.rb
@@ -4,6 +4,7 @@
#
# id :bigint not null, primary key
# delay :integer
+# value :string
# created_at :datetime not null
# updated_at :datetime not null
# command_id :bigint not null
diff --git a/db/migrate/20240229090637_create_protocols_commands.rb b/db/migrate/20240229090637_create_protocols_commands.rb
index fe91a98..34fba28 100644
--- a/db/migrate/20240229090637_create_protocols_commands.rb
+++ b/db/migrate/20240229090637_create_protocols_commands.rb
@@ -3,6 +3,7 @@ def change
create_table :protocols_commands do |t|
t.references :protocol, null: false, foreign_key: true
t.references :command, null: false, foreign_key: true
+ t.string :value
t.integer :delay
t.timestamps
diff --git a/db/schema.rb b/db/schema.rb
index 7cf49f7..57fa2d5 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -57,6 +57,7 @@
create_table "protocols_commands", force: :cascade do |t|
t.bigint "protocol_id", null: false
t.bigint "command_id", null: false
+ t.string "value"
t.integer "delay"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
diff --git a/spec/factories/protocols_commands.rb b/spec/factories/protocols_commands.rb
index 2db6195..0feb84c 100644
--- a/spec/factories/protocols_commands.rb
+++ b/spec/factories/protocols_commands.rb
@@ -4,6 +4,7 @@
#
# id :bigint not null, primary key
# delay :integer
+# value :string
# created_at :datetime not null
# updated_at :datetime not null
# command_id :bigint not null
diff --git a/spec/models/protocols_command_spec.rb b/spec/models/protocols_command_spec.rb
index 6688f8b..1835a56 100644
--- a/spec/models/protocols_command_spec.rb
+++ b/spec/models/protocols_command_spec.rb
@@ -4,6 +4,7 @@
#
# id :bigint not null, primary key
# delay :integer
+# value :string
# created_at :datetime not null
# updated_at :datetime not null
# command_id :bigint not null