Skip to content

Commit

Permalink
Merge pull request #3196 from LibreSign/fix/remove-errors.js
Browse files Browse the repository at this point in the history
Fix/remove errors.js
  • Loading branch information
vitormattos authored Jun 24, 2024
2 parents 5fc7a15 + c94a206 commit e6c0b46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import Vue, { set } from 'vue'
import Vuex, { Store } from 'vuex'
import sidebar from './modules/sidebar.js'
import files from './modules/files.js'
import error from './modules/errors.js'
import settings from './modules/settings.js'

Vue.use(Vuex)
Expand Down Expand Up @@ -80,6 +79,5 @@ export default new Store({
settings,
sidebar,
files,
error,
},
})
5 changes: 2 additions & 3 deletions src/views/SignPDF/_partials/ModalEmailManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ import NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import { showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import FormTextboxPasswordIcon from 'vue-material-design-icons/FormTextboxPassword.vue'
import EmailIcon from 'vue-material-design-icons/Email.vue'
import md5 from 'blueimp-md5'
import { onError } from '../../../helpers/errors.js'
import { validateEmail } from '../../../utils/validators.js'
import { useSignMethodsStore } from '../../../store/signMethods.js'
import { useSignStore } from '../../../store/sign.js'
Expand Down Expand Up @@ -171,7 +170,7 @@ export default {
}
this.signMethodsStore.hasEmailConfirmCode(true)
} catch (err) {
onError(err)
showError(err.response.data.ocs.data.message)
} finally {
this.loading = false
}
Expand Down
5 changes: 2 additions & 3 deletions src/views/SignPDF/_partials/ModalSMSManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import { confirmPassword } from '@nextcloud/password-confirmation'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { onError } from '../../../helpers/errors.js'
import { settingsService } from '../../../domains/settings/index.js'
import { useSignStore } from '../../../store/sign.js'
Expand Down Expand Up @@ -106,7 +105,7 @@ export default {
}
showSuccess(t('libresign', 'Phone stored.'))
} catch (err) {
onError(err)
showError(err.response.data.ocs.data.message)
} finally {
this.loading = false
}
Expand All @@ -132,7 +131,7 @@ export default {
}
this.tokenRequested = true
} catch (err) {
onError(err)
showError(err.response.data.ocs.data.message)
} finally {
this.loading = false
}
Expand Down

0 comments on commit e6c0b46

Please sign in to comment.