diff --git a/backend/src/app/migrations/sql/0062-fix-metadata-media.sql b/backend/src/app/migrations/sql/0062-fix-metadata-media.sql new file mode 100644 index 000000000..5b9823696 --- /dev/null +++ b/backend/src/app/migrations/sql/0062-fix-metadata-media.sql @@ -0,0 +1,8 @@ +-- Fix problem with content-type inconherence + +UPDATE storage_object so +SET metadata = jsonb_set(metadata, '{~:content-type}', to_jsonb(fmo.mtype)) +FROM file_media_object fmo +WHERE so.id = fmo.media_id and + so.metadata->>'~:content-type' != fmo.mtype; + diff --git a/frontend/src/app/main/ui/workspace/header.cljs b/frontend/src/app/main/ui/workspace/header.cljs index 246173264..18c51d3ec 100644 --- a/frontend/src/app/main/ui/workspace/header.cljs +++ b/frontend/src/app/main/ui/workspace/header.cljs @@ -236,13 +236,13 @@ [:li {:on-click on-add-shared} [:span (tr "dashboard.add-shared")]]) + [:li.export-file {:on-click on-export-files} + [:span (tr "dashboard.export-single")]] + (when cfg/feedback-enabled [:li.feedback {:on-click (st/emitf (rt/nav :settings-feedback))} [:span (tr "labels.give-feedback")] [:span.primary-badge "ALPHA"]]) - - [:li.export-file {:on-click on-export-files} - [:span (tr "dashboard.export-single")]] ]]])) ;; --- Header Component