mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-22 05:16:54 +08:00
fix: Fixed an issue where no default button is set for groups (#8217)
This commit is contained in:
parent
49d42061be
commit
818ef0e1f0
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@
|
|||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
v-if="hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
|
||||
v-if="!hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
|
||||
type="primary"
|
||||
@click="setDefault(row)"
|
||||
>
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
<OpDialog ref="opRef" @search="search"></OpDialog>
|
||||
<OperateDialog @search="search" ref="dialogRef" />
|
||||
<GroupDialog @search="loadGroupOptions" :hideDefaultButton="false" ref="dialogGroupRef" />
|
||||
<GroupDialog @search="loadGroupOptions" ref="dialogGroupRef" />
|
||||
<CodemirrorDrawer ref="myDetail" />
|
||||
<TerminalDialog ref="runRef" />
|
||||
</div>
|
||||
|
@ -120,7 +120,7 @@ const groupOptions = ref();
|
|||
|
||||
const dialogGroupRef = ref();
|
||||
const onOpenGroupDialog = () => {
|
||||
dialogGroupRef.value!.acceptParams({ type: 'script' });
|
||||
dialogGroupRef.value!.acceptParams({ type: 'script', hideDefaultButton: true });
|
||||
};
|
||||
|
||||
const dialogRef = ref();
|
||||
|
|
Loading…
Add table
Reference in a new issue