diff --git a/src/components/profiles-modals/CreateProfileModal.vue b/src/components/profiles-modals/CreateProfileModal.vue index ac00bcce..f8e69680 100644 --- a/src/components/profiles-modals/CreateProfileModal.vue +++ b/src/components/profiles-modals/CreateProfileModal.vue @@ -24,6 +24,9 @@ export default class CreateProfileModal extends ProfilesMixin { // User confirmed creation of a new profile with a name that didn't exist before. async createProfile() { + if (this.creatingInProgress) { + return; + } const safeName = this.makeProfileNameSafe(this.newProfileName); if (safeName !== '') { try { diff --git a/src/components/profiles-modals/DeleteProfileModal.vue b/src/components/profiles-modals/DeleteProfileModal.vue index 40f20f1b..b0080afc 100644 --- a/src/components/profiles-modals/DeleteProfileModal.vue +++ b/src/components/profiles-modals/DeleteProfileModal.vue @@ -20,6 +20,9 @@ export default class DeleteProfileModal extends ProfilesMixin { } async removeProfile() { + if (this.deletingInProgress) { + return; + } try { this.deletingInProgress = true; await this.$store.dispatch('profiles/removeSelectedProfile'); diff --git a/src/components/profiles-modals/RenameProfileModal.vue b/src/components/profiles-modals/RenameProfileModal.vue index af6b03db..8c40ce2d 100644 --- a/src/components/profiles-modals/RenameProfileModal.vue +++ b/src/components/profiles-modals/RenameProfileModal.vue @@ -48,6 +48,9 @@ export default class RenameProfileModal extends ProfilesMixin { } async performRename() { + if (this.renamingInProgress) { + return; + } try { this.renamingInProgress = true; await this.$store.dispatch('profiles/renameProfile', {newName: this.newProfileName});