diff --git a/src/modals/directory/AddDirectoryModal.vue b/src/modals/directory/AddDirectoryModal.vue
index 38271305..c008dd03 100644
--- a/src/modals/directory/AddDirectoryModal.vue
+++ b/src/modals/directory/AddDirectoryModal.vue
@@ -23,14 +23,11 @@ import { navigationStore, directoryStore } from '../../store/store.js'
@@ -74,16 +71,8 @@ export default {
loading: false,
success: null,
error: false,
- validateUrlError: null,
- // eslint-disable-next-line no-useless-escape
- urlPattern: /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/,
}
},
- computed: {
- isUrlValid() {
- return this.urlPattern.test(this.directory.directory)
- },
- },
methods: {
addDirectory() {
this.loading = true
@@ -120,14 +109,6 @@ export default {
closeModal() {
navigationStore.setModal(false)
},
- validateUrl(event) {
- this.directory.directory = event.target.value
- if (!this.isUrlValid) {
- this.validateUrlError = 'Er is geen valide URL ingevoerd.'
- } else {
- this.validateUrlError = null
- }
- },
openLink(url, type = '') {
window.open(url, type)
},