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"
>
<template #reference>
<el-button link type="primary">
{{ $t('app.detail') }}
<el-button link type="danger">
<el-icon><Warning /></el-icon>
</el-button>
</template>
</el-popover>
</span>
<el-tooltip effect="dark" :content="$t('app.toFolder')" placement="top">
<el-button type="primary" link @click="toFolder(installed.path)">
<el-icon>
<FolderOpened />
</el-icon>
</el-button>
</el-tooltip>
<span class="ml-1">
<el-tooltip effect="dark" :content="$t('app.toFolder')" placement="top">
<el-button type="primary" link @click="toFolder(installed.path)">
<el-icon>
<FolderOpened />
</el-icon>
</el-button>
</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
class="h-button"
@ -494,15 +511,6 @@ const buttons = [
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) => {