Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/app/dto/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ type ComposeCreate struct {
type ComposeOperation struct {
Name string `json:"name" validate:"required"`
Path string `json:"path"`
Operation string `json:"operation" validate:"required,oneof=up start stop down delete"`
Operation string `json:"operation" validate:"required,oneof=up start restart stop down delete"`
WithFile bool `json:"withFile"`
}
type ComposeUpdate struct {
Expand Down
18 changes: 13 additions & 5 deletions frontend/src/views/container/compose/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
</el-table-column>
<el-table-column :label="$t('container.composeDirectory')" min-width="80" fix>
<template #default="{ row }">
<el-button type="primary" link @click="toComposeFolder(row)">
<el-icon>
<FolderOpened />
</el-icon>
</el-button>
<el-tooltip :content="row.workdir">
<el-button type="primary" link @click="toComposeFolder(row)">
<el-icon>
<FolderOpened />
</el-icon>
</el-button>
</el-tooltip>
</template>
</el-table-column>
<el-table-column :label="$t('container.containerStatus')" min-width="80" fix>
Expand Down Expand Up @@ -251,6 +253,12 @@ const buttons = [
onComposeOperate('stop', row);
},
},
{
label: i18n.global.t('commons.operate.restart'),
click: (row: Container.ComposeInfo) => {
onComposeOperate('restart', row);
},
},
{
label: i18n.global.t('commons.operate.delete'),
click: (row: Container.ComposeInfo) => {
Expand Down
Loading