Merge pull request 'fix(admin): lock module category editing to preserve core Complete Pack entitlements' (#48) from fix/lock-module-category-edit into main
Reviewed-on: https://git.zedobject.local/AcuPedia/acupedia-web-ui/pulls/48 Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
commit
e05e1e4f0f
|
|
@ -1288,7 +1288,6 @@ export default function App() {
|
|||
saving={editModuleSaving}
|
||||
onNameChange={setEditModuleName}
|
||||
onDescriptionChange={setEditModuleDesc}
|
||||
onCategoryChange={setEditModuleCategory}
|
||||
onSave={handleSaveModuleDetails}
|
||||
onClose={() => setSelectedEditModule(null)}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ interface EditModuleModalProps {
|
|||
saving: boolean;
|
||||
onNameChange: (val: string) => void;
|
||||
onDescriptionChange: (val: string) => void;
|
||||
onCategoryChange: (val: string) => void;
|
||||
onSave: (e: React.FormEvent) => void;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
|
@ -24,7 +23,6 @@ export const EditModuleModal: React.FC<EditModuleModalProps> = ({
|
|||
saving,
|
||||
onNameChange,
|
||||
onDescriptionChange,
|
||||
onCategoryChange,
|
||||
onSave,
|
||||
onClose,
|
||||
}) => {
|
||||
|
|
@ -69,17 +67,16 @@ export const EditModuleModal: React.FC<EditModuleModalProps> = ({
|
|||
|
||||
<div>
|
||||
<label className="block text-[10px] uppercase font-bold text-slate-500 mb-1">Category</label>
|
||||
<select
|
||||
<input
|
||||
type="text"
|
||||
readOnly
|
||||
disabled
|
||||
value={normalizeCategory(category)}
|
||||
onChange={(e) => onCategoryChange(e.target.value)}
|
||||
className="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 focus:outline-none focus:border-indigo-500 cursor-pointer"
|
||||
>
|
||||
<option value="Points">Points</option>
|
||||
<option value="Patterns">Patterns</option>
|
||||
<option value="Nutrition">Nutrition</option>
|
||||
<option value="Therapeutics">Therapeutics</option>
|
||||
<option value="General">General</option>
|
||||
</select>
|
||||
className="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-500 cursor-not-allowed"
|
||||
/>
|
||||
<p className="text-[10px] text-slate-400 mt-1">
|
||||
Category is fixed to keep core Complete Pack entitlements consistent. Use Plans & Pricing to create custom combo bundles.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue