Skip to content
Snippets Groups Projects
Commit 3a9fe78e authored by Duy Minh Vo's avatar Duy Minh Vo
Browse files

fix(dpi): enable catalog selection when in duplication mode

parent c4cd8691
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,13 @@ onMounted(async () => {
// Note: Decision is made due to a backend limitation that causes dataset duplicates to occur when changing a catalog
const isDisabled = computed(() => {
const isInEditMode = dpiContext.value.edit?.enabled
return isInEditMode
// If duplicate, do not disable select option so that they can duplicate datasets into different catalogs
// todo: code debt due to code replication; usage of localStorage kind of weird here -> see DraftsPage for more on this.
// We use localStorage to track if the intent is to duplicate or not
const isDuplicate = localStorage?.getItem('dpi_duplicate')
return isInEditMode && !isDuplicate
})
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment