File tree 4 files changed +14
-16
lines changed
4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -777,6 +777,7 @@ const message = {
777
777
apps : 'Apps' ,
778
778
local : 'Local' ,
779
779
createCompose : 'Create' ,
780
+ composeDirectory : 'Compose Directory' ,
780
781
template : 'Template' ,
781
782
composeTemplate : 'Compose template' ,
782
783
createComposeTemplate : 'Create' ,
Original file line number Diff line number Diff line change @@ -746,6 +746,7 @@ const message = {
746
746
apps : '應用商店' ,
747
747
local : '本地' ,
748
748
createCompose : '創建編排' ,
749
+ composeDirectory : '編排目錄' ,
749
750
template : '模版' ,
750
751
composeTemplate : '編排模版' ,
751
752
createComposeTemplate : '創建編排模版' ,
Original file line number Diff line number Diff line change @@ -748,6 +748,7 @@ const message = {
748
748
apps : '应用商店' ,
749
749
local : '本地' ,
750
750
createCompose : '创建编排' ,
751
+ composeDirectory : '编排目录' ,
751
752
template : '模版' ,
752
753
composeTemplate : '编排模版' ,
753
754
createComposeTemplate : '创建编排模版' ,
Original file line number Diff line number Diff line change 10
10
</el-card >
11
11
12
12
<LayoutContent v-if =" !isOnDetail" :title =" $t('container.compose')" :class =" { mask: dockerStatus != 'Running' }" >
13
- <template #prompt >
14
- <el-alert type =" info" :closable =" false" >
15
- <template #title >
16
- <span class =" flx-align-center" >
17
- <span >{{ $t('container.composeHelper', [baseDir]) }}</span >
18
- <el-button type =" primary" link @click =" toFolder" >
19
- <el-icon >
20
- <FolderOpened />
21
- </el-icon >
22
- </el-button >
23
- </span >
24
- </template >
25
- </el-alert >
26
- </template >
27
13
<template #toolbar >
28
14
<div class =" flex justify-between gap-2 flex-wrap sm:flex-row" >
29
15
<div class =" flex flex-wrap gap-3" >
65
51
<span v-if =" row.createdBy === '1Panel'" >1Panel</span >
66
52
</template >
67
53
</el-table-column >
54
+ <el-table-column :label =" $t('container.composeDirectory')" min-width =" 80" fix >
55
+ <template #default =" { row } " >
56
+ <el-button type =" primary" link @click =" toComposeFolder(row)" >
57
+ <el-icon >
58
+ <FolderOpened />
59
+ </el-icon >
60
+ </el-button >
61
+ </template >
62
+ </el-table-column >
68
63
<el-table-column :label =" $t('container.containerStatus')" min-width =" 80" fix >
69
64
<template #default =" scope " >
70
65
<div >
@@ -137,8 +132,8 @@ const goSetting = async () => {
137
132
router .push ({ name: ' ContainerSetting' });
138
133
};
139
134
140
- const toFolder = async () => {
141
- router .push ({ path: ' /hosts/files' , query: { path: baseDir .value + ' /docker/compose' } });
135
+ const toComposeFolder = async (row : Container . ComposeInfo ) => {
136
+ router .push ({ path: ' /hosts/files' , query: { path: baseDir .value + ' /docker/compose/ ' + row . name } });
142
137
};
143
138
144
139
const loadPath = async () => {
You can’t perform that action at this time.
0 commit comments