update:只读文件隐藏操作按钮
This commit is contained in:
@@ -421,6 +421,7 @@ export function ScriptWorkspace({
|
|||||||
<Icon name="chevron" size={13} />
|
<Icon name="chevron" size={13} />
|
||||||
<strong>{script.script_name}</strong>
|
<strong>{script.script_name}</strong>
|
||||||
</div>
|
</div>
|
||||||
|
{!isReadOnlyMode && (
|
||||||
<div className="editor-toolbar__actions">
|
<div className="editor-toolbar__actions">
|
||||||
{isPythonEditing ? (
|
{isPythonEditing ? (
|
||||||
<>
|
<>
|
||||||
@@ -474,6 +475,7 @@ export function ScriptWorkspace({
|
|||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 只读模式:显示只读编辑器 */}
|
{/* 只读模式:显示只读编辑器 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user