diff --git a/docs/guide/guidelines/internationalization.md b/docs/guide/guidelines/internationalization.md index 7afc4598b8..f9ee473798 100644 --- a/docs/guide/guidelines/internationalization.md +++ b/docs/guide/guidelines/internationalization.md @@ -72,5 +72,6 @@ this.$bvModal title: this.$tc('pageDumps.modal.deleteDump'), okTitle: this.$tc('pageDumps.modal.deleteDump'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }) ``` diff --git a/src/views/Logs/Dumps/Dumps.vue b/src/views/Logs/Dumps/Dumps.vue index 77161d4f85..020d2b3cc9 100644 --- a/src/views/Logs/Dumps/Dumps.vue +++ b/src/views/Logs/Dumps/Dumps.vue @@ -332,6 +332,7 @@ export default { title: this.$tc('pageDumps.modal.deleteDump'), okTitle: this.$tc('pageDumps.modal.deleteDump'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }) .then((deleteConfrimed) => { if (deleteConfrimed) { @@ -368,6 +369,7 @@ export default { this.selectedRows.length, ), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfrimed) => { diff --git a/src/views/Logs/EventLogs/EventLogs.vue b/src/views/Logs/EventLogs/EventLogs.vue index 6994849f1e..0e7c494eab 100644 --- a/src/views/Logs/EventLogs/EventLogs.vue +++ b/src/views/Logs/EventLogs/EventLogs.vue @@ -489,6 +489,7 @@ export default { okTitle: this.$t('global.action.delete'), okVariant: 'danger', cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'cancel', }) .then((deleteConfirmed) => { if (deleteConfirmed) { @@ -535,6 +536,7 @@ export default { title: this.$tc('pageEventLogs.modal.deleteTitle'), okTitle: this.$t('global.action.delete'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }) .then((deleteConfirmed) => { if (deleteConfirmed) this.deleteLogs([uri]); @@ -557,6 +559,7 @@ export default { ), okTitle: this.$t('global.action.delete'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { diff --git a/src/views/Logs/PostCodeLogs/PostCodeLogs.vue b/src/views/Logs/PostCodeLogs/PostCodeLogs.vue index 57bbdb599a..6b3030bc88 100644 --- a/src/views/Logs/PostCodeLogs/PostCodeLogs.vue +++ b/src/views/Logs/PostCodeLogs/PostCodeLogs.vue @@ -321,6 +321,7 @@ export default { okTitle: this.$t('global.action.delete'), okVariant: 'danger', cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'cancel', }) .then((deleteConfirmed) => { if (deleteConfirmed) { diff --git a/src/views/Operations/KeyClear/KeyClear.vue b/src/views/Operations/KeyClear/KeyClear.vue index 2524da102b..fbdf4c4608 100644 --- a/src/views/Operations/KeyClear/KeyClear.vue +++ b/src/views/Operations/KeyClear/KeyClear.vue @@ -91,6 +91,7 @@ export default { okTitle: this.$t('pageKeyClear.modal.clear'), okVariant: 'danger', cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'cancel', }) .then((clearConfirmed) => { if (clearConfirmed) { diff --git a/src/views/Operations/RebootBmc/RebootBmc.vue b/src/views/Operations/RebootBmc/RebootBmc.vue index 900619cd59..fe575489c5 100644 --- a/src/views/Operations/RebootBmc/RebootBmc.vue +++ b/src/views/Operations/RebootBmc/RebootBmc.vue @@ -65,6 +65,7 @@ export default { title: this.$t('pageRebootBmc.modal.confirmTitle'), okTitle: this.$t('global.action.confirm'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }) .then((confirmed) => { if (confirmed) this.rebootBmc(); diff --git a/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue index e3864b4af5..281bbef46e 100644 --- a/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue +++ b/src/views/Operations/ServerPowerOperations/ServerPowerOperations.vue @@ -219,6 +219,7 @@ export default { title: this.$t('pageServerPowerOperations.modal.confirmRebootTitle'), okTitle: this.$t('global.action.confirm'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }; if (this.form.rebootOption === 'orderly') { @@ -243,6 +244,7 @@ export default { title: this.$t('pageServerPowerOperations.modal.confirmShutdownTitle'), okTitle: this.$t('global.action.confirm'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }; if (this.form.shutdownOption === 'orderly') { diff --git a/src/views/SecurityAndAccess/Certificates/Certificates.vue b/src/views/SecurityAndAccess/Certificates/Certificates.vue index 0dc1d5e1fc..35e4b81920 100644 --- a/src/views/SecurityAndAccess/Certificates/Certificates.vue +++ b/src/views/SecurityAndAccess/Certificates/Certificates.vue @@ -250,6 +250,7 @@ export default { title: this.$t('pageCertificates.deleteCertificate'), okTitle: this.$t('global.action.delete'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { diff --git a/src/views/SecurityAndAccess/Ldap/TableRoleGroups.vue b/src/views/SecurityAndAccess/Ldap/TableRoleGroups.vue index ed759894d0..eeebfb9b60 100644 --- a/src/views/SecurityAndAccess/Ldap/TableRoleGroups.vue +++ b/src/views/SecurityAndAccess/Ldap/TableRoleGroups.vue @@ -197,6 +197,7 @@ export default { title: this.$t('pageLdap.modal.deleteRoleGroup'), okTitle: this.$t('global.action.delete'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { @@ -227,6 +228,7 @@ export default { title: this.$t('pageLdap.modal.deleteRoleGroup'), okTitle: this.$t('global.action.delete'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { diff --git a/src/views/SecurityAndAccess/Sessions/Sessions.vue b/src/views/SecurityAndAccess/Sessions/Sessions.vue index 7436465332..636aafe012 100644 --- a/src/views/SecurityAndAccess/Sessions/Sessions.vue +++ b/src/views/SecurityAndAccess/Sessions/Sessions.vue @@ -261,6 +261,7 @@ export default { title: this.$tc('pageSessions.modal.disconnectTitle'), okTitle: this.$t('pageSessions.action.disconnect'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }) .then((deleteConfirmed) => { if (deleteConfirmed) this.disconnectSessions([uri]); @@ -283,6 +284,7 @@ export default { ), okTitle: this.$t('pageSessions.action.disconnect'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { diff --git a/src/views/SecurityAndAccess/UserManagement/UserManagement.vue b/src/views/SecurityAndAccess/UserManagement/UserManagement.vue index e9b1fdaaf9..ab3166889d 100644 --- a/src/views/SecurityAndAccess/UserManagement/UserManagement.vue +++ b/src/views/SecurityAndAccess/UserManagement/UserManagement.vue @@ -274,6 +274,7 @@ export default { title: this.$tc('pageUserManagement.deleteUser'), okTitle: this.$tc('pageUserManagement.deleteUser'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { @@ -329,6 +330,7 @@ export default { this.selectedRows.length, ), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { diff --git a/src/views/Settings/Network/TableIpv4.vue b/src/views/Settings/Network/TableIpv4.vue index 8bd21cb9e3..0a06e0e472 100644 --- a/src/views/Settings/Network/TableIpv4.vue +++ b/src/views/Settings/Network/TableIpv4.vue @@ -224,6 +224,7 @@ export default { : this.$t('global.action.disable'), okVariant: 'danger', cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'cancel', }, ) .then((dhcpEnableConfirmed) => { diff --git a/src/views/Settings/SnmpAlerts/SnmpAlerts.vue b/src/views/Settings/SnmpAlerts/SnmpAlerts.vue index 528033be3e..dba181f256 100644 --- a/src/views/Settings/SnmpAlerts/SnmpAlerts.vue +++ b/src/views/Settings/SnmpAlerts/SnmpAlerts.vue @@ -209,6 +209,7 @@ export default { title: this.$tc('pageSnmpAlerts.modal.deleteSnmpDestinationTitle'), okTitle: this.$tc('pageSnmpAlerts.deleteDestination'), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => { @@ -243,6 +244,7 @@ export default { this.selectedRows.length, ), cancelTitle: this.$t('global.action.cancel'), + autoFocusButton: 'ok', }, ) .then((deleteConfirmed) => {