Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(desktop): add import data tip #1222

Merged
merged 1 commit into from
Feb 2, 2023
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
11 changes: 11 additions & 0 deletions src/components/ImportData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
@confirm="importData"
@close="resetData"
>
<el-alert
class="import-data-tip"
:title="$t('connections.importDataTip')"
type="warning"
show-icon
:closable="false"
>
</el-alert>
<el-form ref="form" label-position="left" label-width="130px" :model="record">
<el-row :gutter="20">
<el-col :span="24">
Expand Down Expand Up @@ -396,5 +404,8 @@ export default class ImportData extends Vue {
opacity: 0.5;
}
}
.import-data-tip {
margin-bottom: 12px;
}
}
</style>
7 changes: 7 additions & 0 deletions src/lang/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,13 @@ export default {
ja: 'インポート',
hu: 'Adatok importálása',
},
importDataTip: {
zh: '导入完成后会断开所有连接,请手动点击连接进行恢复。',
en: 'After import, all connections will be disconnected, please click the connect button manually to restore.',
tr: 'İçe aktarmadan sonra tüm bağlantılar kesilecektir, lütfen geri yüklemek için bağlantı düğmesine manuel olarak tıklayın.',
ja: 'インポート後、すべての接続が切断されます。復元するには、接続ボタンを手動でクリックしてください。',
hu: 'Az importálás után az összes kapcsolat megszakad, kérjük, a visszaállításhoz kattintson a kapcsolódás gombra manuálisan.',
},
importFormat: {
zh: '导入数据格式',
en: 'Import format',
Expand Down
4 changes: 2 additions & 2 deletions src/utils/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {
// TabPane,
// Tag,
Tree,
// Alert,
Alert,
// Slider,
// Icon,
Row,
Expand Down Expand Up @@ -118,7 +118,7 @@ export default (Vue: typeof _Vue) => {
// Vue.use(TabPane)
// Vue.use(Tag)
Vue.use(Tree)
// Vue.use(Alert)
Vue.use(Alert)
// Vue.use(Slider)
// Vue.use(Icon)
Vue.use(Row)
Expand Down