From b2055032cb914fd160270971dd1da46f8c7c838d Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 8 Oct 2022 19:07:12 +0200 Subject: [proxy] remove TODOs from library and package pages and make package page display enable/disable/forget buttons --- src/hydrilla/proxy/state_impl/items.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hydrilla/proxy/state_impl') diff --git a/src/hydrilla/proxy/state_impl/items.py b/src/hydrilla/proxy/state_impl/items.py index 010b8ca..6a41300 100644 --- a/src/hydrilla/proxy/state_impl/items.py +++ b/src/hydrilla/proxy/state_impl/items.py @@ -290,7 +290,8 @@ class ConcreteMappingRef(st.MappingRef): if version_id_to_activate is not None: new_active_version_id = version_id_to_activate - elif enabled == st.EnabledStatus.ENABLED: + elif enabled == st.EnabledStatus.ENABLED and \ + old_active_version_id is not None: new_active_version_id = str(old_active_version_id) else: new_active_version_id = None -- cgit v1.2.3