Commit b904ef21 authored by Seemann Benjamin's avatar Seemann Benjamin

Work on url validation in the ui

parent 619f5ac5
Pipeline #74695625 passed with stages
in 2 minutes and 53 seconds
......@@ -27,6 +27,7 @@ export function addOrUpdateUser(userId, displayName) {
}
export function fetchBusinessPOIs(userId) {
console.log('fetchbusinessPOIS called by update.js');
if (fakeOsmybizApi) {
return mockFetchBusinessPOIs(userId);
}
......
......@@ -50,11 +50,18 @@
src="../../assets/info_black.png">
</div>
<input type="text"
<input v-validate="url"
:class="{'is-error': errors.has('website')}"
type="text"
v-on:blur="blurOpeningHours()"
id="openingHoursURL"
v-model="details.opening_hours_url"
:placeholder="$t('detail.placeholders.opening_hours_url')">
<span v-show="errors.has('website')"
class="help is-danger">
{{$t('detail.validate.website')}}
</span>
</div>
<div class="field">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment