Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.13"
jobs:
pre_build:
- curl https://radia.run | bash -s readthedocs
Expand Down
2 changes: 0 additions & 2 deletions slicops/package_data/sliclet/fractals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ fields:
prototype: String
ui:
label: Fractal Status
widget: static
writable: false
plot:
prototype: Dict
Expand All @@ -46,7 +45,6 @@ fields:
plot_file:
prototype: String
ui:
widget: static
writable: false
#TODO(robnagler) need a "base.yaml" or something
revert:
Expand Down
2 changes: 0 additions & 2 deletions slicops/package_data/sliclet/screen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ fields:
ui:
label: PV
writable: false
widget: static
target_status:
prototype: String
ui:
label: Target Status
writable: false
widget: static
single_button:
prototype: Button
ui:
Expand Down
1 change: 0 additions & 1 deletion slicops/package_data/sliclet/yaml_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fields:
ui:
label: 'Output #1'
writable: False
widget: static
output2:
prototype: output1
ui:
Expand Down
24 changes: 13 additions & 11 deletions ui/src/components/layout/VCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@
:ctx="ctx"
/>
</div>
<div v-else-if="['text', 'float', 'integer'].includes(ctx[field].ui.widget)">
<VText
:field="field"
:ctx="ctx"
/>
</div>
<div v-else-if="ctx[field].ui.widget == 'static'">
<VStatic
:field="field"
:ctx="ctx"
/>
<div v-else-if="['string', 'float', 'integer'].includes(ctx[field].ui.widget)">
<div v-if="ctx[field].ui.writable === false">
<VStatic
:field="field"
:ctx="ctx"
/>
</div>
<div v-else>
<VText
:field="field"
:ctx="ctx"
/>
</div>
</div>
<div v-else-if="ctx[field].ui.widget == 'button'">
<VButton
Expand Down
9 changes: 3 additions & 6 deletions ui/src/components/widget/VStatic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
:ctx="ctx"
/>
<div>
<input
v-model="ctx[field].value"
class="form-control form-control-sm form-control-plaintext"
:id="field"
readonly
/>
<div class="form-control form-control-sm form-control-plaintext">
{{ ctx[field].value }}
</div>
</div>
</template>

Expand Down