删除服务器详情页右上角的冗余按钮
This commit is contained in:
parent
75ded1601f
commit
5e9cda9bee
@ -317,33 +317,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions({ documentResource: jsiteServer }) {
|
actions({ documentResource: jsiteServer }) {
|
||||||
if (!jsiteServer) return [];
|
return [];
|
||||||
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
label: '重启',
|
|
||||||
icon: 'refresh-cw',
|
|
||||||
onClick() {
|
|
||||||
jsiteServer.reboot.submit();
|
|
||||||
},
|
|
||||||
condition: () => jsiteServer.pg?.status === 'Running'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '重命名',
|
|
||||||
icon: 'edit-3',
|
|
||||||
onClick() {
|
|
||||||
jsiteServer.rename.submit();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '删除',
|
|
||||||
icon: 'trash-2',
|
|
||||||
onClick() {
|
|
||||||
jsiteServer.dropServer.submit();
|
|
||||||
},
|
|
||||||
condition: () => jsiteServer.pg?.status !== 'Running'
|
|
||||||
}
|
|
||||||
].filter(action => !action.condition || action.condition());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user