Skip to content

Commit ba01461

Browse files
committed
active flag
1 parent ce8994e commit ba01461

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

views/profile/bot_form.ejs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,13 @@
7373
<p class="text-xs text-gray-500 mt-1">Optional: Override default strategy options</p>
7474
</div>
7575

76-
<% if (isEdit) { %>
7776
<div>
7877
<label class="block text-sm font-medium text-gray-700 mb-1">Active</label>
7978
<label class="flex items-center">
80-
<input type="checkbox" name="status" <%= bot && bot.status === 'running' ? 'checked' : '' %> class="mr-2">
79+
<input type="checkbox" name="status" <%= !bot || bot.status === 'running' ? 'checked' : '' %> class="mr-2">
8180
<span class="text-sm">Bot is running</span>
8281
</label>
8382
</div>
84-
<% } %>
8583

8684
<div class="flex justify-end gap-2 pt-4 border-t border-gray-200">
8785
<a href="/profiles/<%= profile.id %>" class="px-4 py-2 text-sm text-gray-600 hover:text-gray-800">Cancel</a>

0 commit comments

Comments
 (0)