fix: ui: inject mode

This commit is contained in:
Dobin
2024-04-03 06:42:30 +01:00
parent 8468f3fef1
commit 7bc03fa6c2
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -91,10 +91,10 @@
{% endfor %}
</select>
<select class="form-select" name="inject_style" aria-label="INJECTSTYLE" onchange="this.form.submit()">
<select class="form-select" name="inject_mode" aria-label="INJECTSTYLE" onchange="this.form.submit()">
{% for name, value in injectstyles %}
<option value="{{name}}"
{% if value in project.settings.inject_mode.value %} selected {% endif %}
{% if value in project.settings.inject_mode.value %} selected {% endif %}
>{{value}}</option>
{% endfor %}
</select>
+1 -1
View File
@@ -58,7 +58,7 @@
{% endfor %}
</select>
<select class="form-select" name="inject_style" aria-label="INJECTSTYLE">
<select class="form-select" name="inject_mode" aria-label="INJECTSTYLE">
{% for name, value in injectstyles %}
<option value="{{name}}">{{value}}</option>
{% endfor %}
+3
View File
@@ -112,6 +112,9 @@ def add_project():
source_style = request.form['source_style']
settings.source_style = SourceStyle[source_style]
inject_mode = request.form['inject_mode']
settings.inject_mode = InjectStyle[inject_mode]
alloc_style = request.form['alloc_style']
settings.alloc_style = AllocStyle[alloc_style]