fix: 调整 PostgreSQL 用户绑定样式 (#3530)

This commit is contained in:
ssongliu 2024-01-08 18:21:33 +08:00 committed by GitHub
parent 3c2472ab6c
commit 51077b0597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -47,6 +47,7 @@ func NewPostgresqlClient(conn client.DBInfo) (PostgresqlClient, error) {
return client.NewRemote(client.Remote{
Client: db,
From: "remote",
Database: conn.Database,
User: conn.Username,
Password: conn.Password,

View file

@ -376,7 +376,7 @@ const message = {
loadFromRemote: '從服務器獲取',
userBind: '綁定使用者',
pgBind: '綁定用戶(暫不支持綁定已有用戶)',
pgBind: '綁定用戶 (暫不支持綁定已有用戶)',
loadFromRemoteHelper: '此操作將同步服務器上數據庫信息到 1Panel是否繼續',
passwordHelper: '無法獲取密碼請修改',
local: '本地',

View file

@ -376,7 +376,7 @@ const message = {
loadFromRemote: '从服务器获取',
userBind: '绑定用户',
pgBind: '绑定用户(暂不支持绑定已有用户)',
pgBind: '绑定用户 (暂不支持绑定已有用户)',
loadFromRemoteHelper: '此操作将同步服务器上数据库信息到 1Panel是否继续',
passwordHelper: '无法获取密码请修改',
local: '本地',

View file

@ -7,8 +7,7 @@
<el-form v-loading="loading" ref="changeFormRef" :model="form" :rules="rules" label-position="top">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-alert type="warning" :description="$t('database.pgBindHelper')" :closable="false" />
<el-form-item class="mt-5" :label="$t('commons.login.username')" prop="username">
<el-form-item :label="$t('database.pgBind')" prop="username">
<el-input v-model="form.username" />
</el-form-item>
<el-form-item :label="$t('commons.login.password')" prop="password">