fix: Invalid portal domain validation (#6166)

* fix: Invalid portal domain validation


Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sivin Varghese
2023-01-09 13:42:19 +05:30
committed by GitHub
parent 4172cb4b23
commit 0a65a233d7
3 changed files with 23 additions and 2 deletions

View File

@@ -81,7 +81,8 @@
</template>
<script>
import { required, url, minLength } from 'vuelidate/lib/validators';
import { required, minLength } from 'vuelidate/lib/validators';
import { isDomain } from 'shared/helpers/Validators';
import thumbnail from 'dashboard/components/widgets/Thumbnail';
import { convertToCategorySlug } from 'dashboard/helper/commons.js';
import { buildPortalURL } from 'dashboard/helper/portalHelper';
@@ -121,7 +122,7 @@ export default {
required,
},
domain: {
url,
isDomain,
},
},
computed: {