feat: allow editing imported unit blocks (#2405)

Allows authors to edit imported unit display name in outline.
This commit is contained in:
Navin Karkera
2025-09-17 22:57:04 +05:30
committed by GitHub
parent c21b664a8b
commit 61c87fe6a6
20 changed files with 31 additions and 70 deletions

View File

@@ -102,7 +102,7 @@ export const updateXBlockBlockIdToId = (data: object): object => {
* @param unit - uses the 'upstreamInfo' object if found.
* @returns True if readOnly, False if editable.
*/
export const isUnitReadOnly = ({ upstreamInfo }: XBlock): boolean => (
export const isUnitImportedFromLib = ({ upstreamInfo }: XBlock): boolean => (
!!upstreamInfo
&& !!upstreamInfo.upstreamRef
&& upstreamInfo.upstreamRef.startsWith('lct:')