diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index 6a3b299a..59bd655c 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -450,6 +450,7 @@ ids.forEach(function(id) { that.accounts = that.accounts.filter(a => a.id !== id) }) + this.$notify({ type: 'is-success', text: this.$t('twofaccounts.accounts_deleted') }) }) // we fetch the accounts again to prevent the js collection being @@ -478,6 +479,8 @@ this.fetchAccounts(true) this.showGroupSelector = false + this.$notify({ type: 'is-success', text: this.$t('twofaccounts.accounts_moved') }) + }, /** diff --git a/resources/js/views/Groups.vue b/resources/js/views/Groups.vue index e5dda6b7..d57b9e1d 100644 --- a/resources/js/views/Groups.vue +++ b/resources/js/views/Groups.vue @@ -105,6 +105,7 @@ // Remove the deleted group from the collection this.groups = this.groups.filter(a => a.id !== id) + this.$notify({ type: 'is-success', text: this.$t('groups.group_successfully_deleted') }) // Reset persisted group filter to 'All' (groupId=0) // (backend will save to change automatically) diff --git a/resources/js/views/groups/Create.vue b/resources/js/views/groups/Create.vue index 7f592d4e..8f0ff057 100644 --- a/resources/js/views/groups/Create.vue +++ b/resources/js/views/groups/Create.vue @@ -32,6 +32,7 @@ await this.form.post('/api/v1/groups') if( this.form.errors.any() === false ) { + this.$notify({ type: 'is-success', text: this.$t('groups.group_successfully_created') }) this.$router.push({ name: 'groups' }); } diff --git a/resources/js/views/groups/Edit.vue b/resources/js/views/groups/Edit.vue index 8a579d23..ff3e2300 100644 --- a/resources/js/views/groups/Edit.vue +++ b/resources/js/views/groups/Edit.vue @@ -34,6 +34,7 @@ await this.form.put('/api/v1/groups/' + this.id) if( this.form.errors.any() === false ) { + this.$notify({ type: 'is-success', text: this.$t('groups.group_name_saved') }) this.$router.push({ name: 'groups' }) } diff --git a/resources/js/views/settings/Credentials/Edit.vue b/resources/js/views/settings/Credentials/Edit.vue index fc60112b..8c7ab2e0 100644 --- a/resources/js/views/settings/Credentials/Edit.vue +++ b/resources/js/views/settings/Credentials/Edit.vue @@ -34,6 +34,7 @@ await this.form.patch('/webauthn/credentials/' + this.id + '/name') if( this.form.errors.any() === false ) { + this.$notify({ type: 'is-success', text: this.$t('auth.webauthn.device_successfully_registered') }) this.$router.push({name: 'settings.webauthn.devices', params: { toRefresh: true }}) } diff --git a/resources/js/views/settings/WebAuthn.vue b/resources/js/views/settings/WebAuthn.vue index c9ffa5f8..4fcb2944 100644 --- a/resources/js/views/settings/WebAuthn.vue +++ b/resources/js/views/settings/WebAuthn.vue @@ -165,7 +165,6 @@ const publicKeyCredential = this.parseOutgoingCredentials(bufferedCredentials); this.axios.post('/webauthn/register', publicKeyCredential).then(response => { - this.$notify({ type: 'is-success', text: this.$t('auth.webauthn.device_successfully_registered') }) this.$router.push({ name: 'settings.webauthn.editCredential', params: { id: publicKeyCredential.id, name: this.$t('auth.webauthn.my_device') } }) }) }, diff --git a/resources/js/views/twofaccounts/Create.vue b/resources/js/views/twofaccounts/Create.vue index 9162c5ff..720adc94 100644 --- a/resources/js/views/twofaccounts/Create.vue +++ b/resources/js/views/twofaccounts/Create.vue @@ -319,6 +319,7 @@ await this.form.post('/api/v1/twofaccounts') if( this.form.errors.any() === false ) { + this.$notify({ type: 'is-success', text: this.$t('twofaccounts.account_created') }) this.$router.push({name: 'accounts', params: { toRefresh: true }}); } diff --git a/resources/js/views/twofaccounts/Edit.vue b/resources/js/views/twofaccounts/Edit.vue index 58c5f6ed..a303b3f1 100644 --- a/resources/js/views/twofaccounts/Edit.vue +++ b/resources/js/views/twofaccounts/Edit.vue @@ -241,6 +241,7 @@ await this.form.put('/api/v1/twofaccounts/' + this.$route.params.twofaccountId) if( this.form.errors.any() === false ) { + this.$notify({ type: 'is-success', text: this.$t('twofaccounts.account_updated') }) this.$router.push({name: 'accounts', params: { initialEditMode: true, toRefresh: true }}) } diff --git a/resources/lang/en/groups.php b/resources/lang/en/groups.php index d6514d32..26c25063 100644 --- a/resources/lang/en/groups.php +++ b/resources/lang/en/groups.php @@ -23,6 +23,9 @@ return [ 'move_selected_to' => 'Move selected to', 'no_group' => 'No group', 'change_group' => 'Change group', + 'group_successfully_created' => 'Group successfully created', + 'group_name_saved' => 'Group name saved', + 'group_successfully_deleted' => 'Group successfully deleted', 'forms' => [ 'new_group' => 'New group', 'new_name' => 'New name', diff --git a/resources/lang/en/twofaccounts.php b/resources/lang/en/twofaccounts.php index 7b1d56ae..904c84b9 100644 --- a/resources/lang/en/twofaccounts.php +++ b/resources/lang/en/twofaccounts.php @@ -26,6 +26,10 @@ return [ 'add_one' => 'Add one', 'show_qrcode' => 'Show QR code', 'no_service' => '- no service -', + 'account_created' => 'Account successfully created', + 'account_updated' => 'Account successfully updated', + 'accounts_deleted' => 'Account(s) successfully deleted', + 'accounts_moved' => 'Account(s) successfully moved', 'forms' => [ 'service' => [ 'placeholder' => 'Google, Twitter, Apple',