fix(tenancy): show role dropdown for pending store memberships too
Some checks failed
CI / ruff (push) Successful in 14s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has been cancelled

The role dropdown was hidden for pending stores (x-show="!store.is_pending").
Pending members already have an assigned role that should be changeable
before acceptance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 21:16:52 +02:00
parent d685341b04
commit 1decb4572c

View File

@@ -308,8 +308,8 @@
x-text="store.is_pending ? '{{ _('common.pending') }}' : '{{ _('common.active') }}'"></span> x-text="store.is_pending ? '{{ _('common.pending') }}' : '{{ _('common.active') }}'"></span>
</div> </div>
<!-- Active: role dropdown + update --> <!-- Role dropdown + update -->
<div x-show="!store.is_pending" class="flex items-center gap-2"> <div class="flex items-center gap-2">
<select x-model="store.role_name" <select x-model="store.role_name"
class="flex-1 px-2 py-1 text-sm text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md focus:border-purple-400 focus:outline-none"> class="flex-1 px-2 py-1 text-sm text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md focus:border-purple-400 focus:outline-none">
<template x-for="role in roleOptions" :key="role.value"> <template x-for="role in roleOptions" :key="role.value">