sciapp / sampledb

Sample and Measurement Metadata Database
https://scientific-it-systems.iffgit.fz-juelich.de/SampleDB/
MIT License
21 stars 11 forks source link

Editing action - Editor switch #37

Open ivandga opened 2 years ago

ivandga commented 2 years ago

Hi,

it could be really neat to be able to easily switch editor mode when editing actions.

The current solution wants me to go in the preferences and there switch the mode.

More comfortable would be to switch the editor mode directly while creating or editing the action.

Is this feature already planned?

Cheers, Ivan

Edit: I am using the docker container with version 0.20.0

FlorianRhiem commented 2 years ago

Hey @ivandga,

most users use one mode or the other, so this wasn't planned yet, but true it might be useful to quickly prototype an action using the graphical editor and then switch over to the text-based editor to make some more changes without permanently setting the preference to that. A button in the reverse direction will likely have to check if the schema contains advanced features, but since this is already done at the start, it should be possible to do this during editing as well.

FlorianRhiem commented 2 years ago

Hey @ivandga,

I've implemented a switch like this:

image image

You can test this by using the current development version of SampleDB, e.g. by using the Docker image sciapp/sampledb:develop.