diff --git a/backend/core/migrations/0019_merge_20240726_2156.py b/backend/core/migrations/0019_merge_20240726_2156.py new file mode 100644 index 000000000..30137e1f4 --- /dev/null +++ b/backend/core/migrations/0019_merge_20240726_2156.py @@ -0,0 +1,12 @@ +# Generated by Django 5.0.6 on 2024-07-26 21:56 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("core", "0018_appliedcontrol_csf_function_and_more"), + ("core", "0018_framework_translations_loadedlibrary_translations_and_more"), + ] + + operations = [] diff --git a/frontend/src/lib/components/ModelTable/ModelTable.svelte b/frontend/src/lib/components/ModelTable/ModelTable.svelte index 3961703a1..63a8eb456 100644 --- a/frontend/src/lib/components/ModelTable/ModelTable.svelte +++ b/frontend/src/lib/components/ModelTable/ModelTable.svelte @@ -208,6 +208,7 @@ const actionsURLModel = source.meta?.urlmodel ?? URLModel; const preventDelete = (row: TableSource) => (row.meta.builtin && actionsURLModel !== 'loaded-libraries') || + (URLModel !== 'libraries' && Object.hasOwn(row.meta, 'urn') && row.meta.urn) || (Object.hasOwn(row.meta, 'reference_count') && row.meta.reference_count > 0); import { popup } from '@skeletonlabs/skeleton';