style: 已安装应用按钮调整 (#2446)

pull/2449/head
zhengkunwang 2023-10-07 09:18:44 -05:00 committed by GitHub
parent 4366714f0b
commit 221c87e71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 19 deletions

View File

@ -111,20 +111,37 @@
:content="installed.message" :content="installed.message"
> >
<template #reference> <template #reference>
<el-button link type="primary"> <el-button link type="danger">
{{ $t('app.detail') }} <el-icon><Warning /></el-icon>
</el-button> </el-button>
</template> </template>
</el-popover> </el-popover>
</span> </span>
<span class="ml-1">
<el-tooltip effect="dark" :content="$t('app.toFolder')" placement="top"> <el-tooltip effect="dark" :content="$t('app.toFolder')" placement="top">
<el-button type="primary" link @click="toFolder(installed.path)"> <el-button type="primary" link @click="toFolder(installed.path)">
<el-icon> <el-icon>
<FolderOpened /> <FolderOpened />
</el-icon> </el-icon>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</span>
<span class="ml-1">
<el-tooltip
effect="dark"
:content="$t('commons.button.log')"
placement="top"
>
<el-button
link
type="primary"
@click="openLog(installed)"
:disabled="installed.status === 'DownloadErr'"
>
<el-icon><Tickets /></el-icon>
</el-button>
</el-tooltip>
</span>
<el-button <el-button
class="h-button" class="h-button"
@ -494,15 +511,6 @@ const buttons = [
return row.status === 'DownloadErr' || row.status === 'Upgrading' || row.status === 'Rebuilding'; return row.status === 'DownloadErr' || row.status === 'Upgrading' || row.status === 'Rebuilding';
}, },
}, },
{
label: i18n.global.t('commons.button.log'),
click: (row: any) => {
openLog(row);
},
disabled: (row: any) => {
return row.status === 'DownloadErr';
},
},
]; ];
const openBackups = (key: string, name: string) => { const openBackups = (key: string, name: string) => {