Skip to content

Commit f850567

Browse files
committed
show message same internaltype schedule
1 parent 00400d0 commit f850567

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,7 @@
30673067
"message.backup.attach.restore": "Please confirm that you want to restore and attach the volume from the backup?",
30683068
"message.backup.create": "Are you sure you want to create an Instance backup?",
30693069
"message.backup.offering.remove": "Are you sure you want to remove Instance from backup offering and delete the backup chain?",
3070-
"message.backup.provision.instance": "Select a backup offering to assign to the Instance. You can also add one or more backup schedules to automate backups for this Instance. Assigning a backup offering and schedules helps protect your data by enabling automated and scheduled backups.",
3070+
"message.backup.provision.instance": "Select a backup offering to assign to the Instance. You can also add one or more backup schedules for different interval types to automate backups for this Instance. Assigning a backup offering and schedules helps protect your data by enabling automated and scheduled backups.",
30713071
"message.backup.restore": "Please confirm that you want to restore the Instance backup?",
30723072
"message.cancel.shutdown": "Please confirm that you would like to cancel the shutdown on this Management Server. It will resume accepting any new Async Jobs.",
30733073
"message.cancel.maintenance": "Please confirm that you would like to cancel the maintenance on this Management Server. It will resume accepting any new Async Jobs.",

ui/src/views/compute/DeployVM.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@
920920

921921
<script>
922922
import { ref, reactive, toRaw, nextTick, h } from 'vue'
923-
import { Button } from 'ant-design-vue'
923+
import { Button, message } from 'ant-design-vue'
924924
import { getAPI, postAPI } from '@/api'
925925
import _ from 'lodash'
926926
import { mixin, mixinDevice } from '@/utils/mixin.js'
@@ -3450,6 +3450,7 @@ export default {
34503450
// This is in accordance with the API behavior that only one schedule per intervaltype is allowed
34513451
const existingIndex = this.backupSchedules.findIndex(item => item.intervaltype === schedule.intervaltype)
34523452
if (existingIndex !== -1) {
3453+
message.warning({ content: this.$t('Updating existing backup schedule for the same interval type') + ' ' + schedule.intervaltype, duration: 3 })
34533454
this.backupSchedules.splice(existingIndex, 1, schedule)
34543455
return
34553456
}

0 commit comments

Comments
 (0)