mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	fix app_url and quantity validation issue
This commit is contained in:
		| @ -36,7 +36,7 @@ | ||||
|               <base-input | ||||
|                 v-model="item.quantity" | ||||
|                 :invalid="$v.item.quantity.$error" | ||||
|                 type="number" | ||||
|                 type="text" | ||||
|                 small | ||||
|                 @keyup="updateItem" | ||||
|                 @input="$v.item.quantity.$touch()" | ||||
|  | ||||
| @ -36,7 +36,7 @@ | ||||
|               <base-input | ||||
|                 v-model="item.quantity" | ||||
|                 :invalid="$v.item.quantity.$error" | ||||
|                 type="number" | ||||
|                 type="text" | ||||
|                 small | ||||
|                 @keyup="updateItem" | ||||
|                 @input="$v.item.quantity.$touch()" | ||||
|  | ||||
| @ -18,7 +18,7 @@ | ||||
|             <span v-if="!$v.databaseData.app_url.required" class="text-danger"> | ||||
|               {{ $tc('validation.required') }} | ||||
|             </span> | ||||
|             <span v-if="!$v.databaseData.app_url.url" class="text-danger"> | ||||
|             <span v-if="!$v.databaseData.app_url.isUrl" class="text-danger"> | ||||
|               {{ $tc('validation.invalid_url') }} | ||||
|             </span> | ||||
|           </div> | ||||
| @ -184,7 +184,9 @@ export default { | ||||
|       }, | ||||
|       app_url: { | ||||
|         required, | ||||
|         url | ||||
|         isUrl (val) { | ||||
|           return this.$utils.checkValidUrl(val) | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user