fix: 禁止已撤回模板进入预览
This commit is contained in:
1 parent
d1958a7d7f
commit
c1633fb6f3
1 file changed
+5
-1
@@ -194,7 +194,11 @@ export function TemplateManagementPage() {
|
||||
type="link"
|
||||
icon={<EyeOutlined />}
|
||||
onClick={() => setPreviewVersion(item)}
|
||||
disabled={!item.manifestSummary?.supportedIndustryTemplates?.length}
|
||||
disabled={
|
||||
item.status === "retired" ||
|
||||
item.status === "disabled" ||
|
||||
!item.manifestSummary?.supportedIndustryTemplates?.length
|
||||
}
|
||||
>
|
||||
预览
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user