mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-22 21:36:24 +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>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
v-if="hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
|
v-if="!hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="setDefault(row)"
|
@click="setDefault(row)"
|
||||||
>
|
>
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
|
|
||||||
<OpDialog ref="opRef" @search="search"></OpDialog>
|
<OpDialog ref="opRef" @search="search"></OpDialog>
|
||||||
<OperateDialog @search="search" ref="dialogRef" />
|
<OperateDialog @search="search" ref="dialogRef" />
|
||||||
<GroupDialog @search="loadGroupOptions" :hideDefaultButton="false" ref="dialogGroupRef" />
|
<GroupDialog @search="loadGroupOptions" ref="dialogGroupRef" />
|
||||||
<CodemirrorDrawer ref="myDetail" />
|
<CodemirrorDrawer ref="myDetail" />
|
||||||
<TerminalDialog ref="runRef" />
|
<TerminalDialog ref="runRef" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -120,7 +120,7 @@ const groupOptions = ref();
|
||||||
|
|
||||||
const dialogGroupRef = ref();
|
const dialogGroupRef = ref();
|
||||||
const onOpenGroupDialog = () => {
|
const onOpenGroupDialog = () => {
|
||||||
dialogGroupRef.value!.acceptParams({ type: 'script' });
|
dialogGroupRef.value!.acceptParams({ type: 'script', hideDefaultButton: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
const dialogRef = ref();
|
const dialogRef = ref();
|
||||||
|
|
Loading…
Add table
Reference in a new issue