Layout and button changes

- In Model View, moved "Set as Preview" button below radio buttons and disabled when Default selected.
- General CSS layout improvements.
This commit is contained in:
Christian Bastian
2024-02-22 15:53:58 -05:00
parent d951a508ed
commit b7747a163a
3 changed files with 183 additions and 146 deletions

View File

@@ -651,10 +651,14 @@ async def move_model(request):
if new_path is None:
return web.json_response({ "success": False })
new_path, _ = search_path_to_system_path(new_path)
if new_path is None:
return web.json_response({ "success": False })
if not os.path.isdir(new_path):
return web.json_response({ "success": False })
new_file = os.path.join(new_path, filename)
if old_file == new_file:
return web.json_response({ "success": False })
try:
shutil.move(old_file, new_file)
except ValueError as e: