mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
chore: Modify FTP account deletion prompt (#11873)
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
<el-carousel
|
||||
class="my-carousel"
|
||||
:class="{ 'no-indicator': carouselItemCount <= 1 }"
|
||||
:key="simpleNodes.length"
|
||||
:key="simpleNodes.length + carouselItemCount"
|
||||
height="368px"
|
||||
indicator-position=""
|
||||
arrow="never"
|
||||
|
||||
@@ -163,6 +163,7 @@ import LogDialog from '@/views/toolbox/ftp/log/index.vue';
|
||||
import { Toolbox } from '@/api/interface/toolbox';
|
||||
import { GlobalStore } from '@/store';
|
||||
import { routerToFileWithPath } from '@/utils/router';
|
||||
import { getRandomStr } from '@/utils/util';
|
||||
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
@@ -263,7 +264,12 @@ const onChange = async (row: any) => {
|
||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||
};
|
||||
|
||||
const onOpenDialog = async (title: string, rowData: Partial<Toolbox.FtpInfo> = {}) => {
|
||||
const onOpenDialog = async (
|
||||
title: string,
|
||||
rowData: Partial<Toolbox.FtpInfo> = {
|
||||
password: getRandomStr(12),
|
||||
},
|
||||
) => {
|
||||
let params = {
|
||||
title,
|
||||
rowData: { ...rowData },
|
||||
@@ -306,7 +312,7 @@ const onDelete = async (row: Toolbox.FtpInfo | null) => {
|
||||
title: i18n.global.t('commons.button.delete'),
|
||||
names: names,
|
||||
msg: i18n.global.t('commons.msg.operatorHelper', [
|
||||
i18n.global.t('menu.cronjob'),
|
||||
i18n.global.t('website.ftpUser'),
|
||||
i18n.global.t('commons.button.delete'),
|
||||
]),
|
||||
api: null,
|
||||
|
||||
Reference in New Issue
Block a user