1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

perf: 弹窗操作的 successMsg 参数 (#2892)

This commit is contained in:
QuentinHsu 2023-11-10 23:07:16 +08:00 committed by GitHub
parent adc34aaf75
commit 0a003d3750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,12 +567,14 @@ const onOperate = async (op: string, row: Container.ContainerInfo | null) => {
msg = i18n.global.t('container.operatorAppHelper', [i18n.global.t('container.' + op)]);
}
}
const successMsg = `${i18n.global.t('container.' + op)}${i18n.global.t('commons.status.success')}`;
opRef.value.acceptParams({
title: i18n.global.t('container.' + op),
names: names,
msg: msg,
api: containerOperator,
params: { names: names, operation: op },
successMsg,
});
};