Skip to content

Conversation

@alexma233
Copy link

What

Fixes gallery image uploads from project settings by removing the this.* access that crashed before the request was sent, and by using the injected project context + notification manager directly. Also solved #5202.

Why

On settings/gallery, clicking “Add gallery image” could throw TypeError: this.project is undefined (no POST fired) and then TypeError: this.addNotification is not a function, leaving users with a stuck progress bar and no error.

How

  • Migrate apps/frontend/src/pages/[type]/[id]/settings/gallery.vue to a single <script setup lang="ts"> implementation
  • Use injectProjectPageContext() / injectNotificationManager() in-module (no Options API this)
  • Use useTemplateRef for modals instead of $refs
  • Ensure loading state always resets via finally

Testing

  • pnpm prepr:frontend:web
  • Manually verified: upload gallery image succeeds from project settings
Screenshot From 2026-01-25 11-24-30

Notes

This aligns the settings page behavior with the already-migrated apps/frontend/src/pages/[type]/[id]/gallery.vue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant