Commit 6a837d9c authored by Seemann Benjamin's avatar Seemann Benjamin

Moved converter js into store

parent 14d49f19
Pipeline #76381788 failed with stages
in 1 minute and 32 seconds
......@@ -44,7 +44,7 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('static/converter.js')]
include: [resolve('src'), resolve('test')]
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
......
......@@ -41,30 +41,30 @@
:placeholder="$t('detail.placeholders.opening_hours')">
</div>
<div class="field">
<div class="field-label">
<label>{{ $t('detail.labels.opening_hours_url') }}</label>
<img class="info"
@mouseenter="showPopup($t('infoTexts.opening_hours_url'))"
@mouseleave="hidePopup()"
src="../../assets/info_black.png">
</div>
<input v-validate="'url'"
:class="{'is-error': errors.has('website_opening_hours')}"
type="text"
name="website_opening_hours"
v-on:blur="blurOpeningHours()"
id="openingHoursURL"
v-model="details.opening_url"
:placeholder="$t('detail.placeholders.opening_hours_url')">
<span v-show="errors.has('website_opening_hours')"
class="help is-danger">
<div class="field">
<div class="field-label">
<label>{{ $t('detail.labels.opening_hours_url') }}</label>
<img class="info"
@mouseenter="showPopup($t('infoTexts.opening_hours_url'))"
@mouseleave="hidePopup()"
src="../../assets/info_black.png">
</div>
<input v-validate="'url'"
:class="{'is-error': errors.has('website_opening_hours')}"
type="text"
name="website_opening_hours"
v-on:blur="blurOpeningHours()"
id="openingHoursURL"
v-model="details.opening_url"
:placeholder="$t('detail.placeholders.opening_hours_url')">
<span v-show="errors.has('website_opening_hours')"
class="help is-danger">
{{$t('detail.validate.website')}}
</span>
</div>
</div>
<div class="field">
<div class="field-label">
<label>{{ $t('detail.labels.phone') }}</label>
......@@ -178,13 +178,13 @@
</template>
<script>
import { mapGetters, mapMutations } from 'vuex';
import {mapGetters, mapMutations} from 'vuex';
import Vue from 'vue';
import VeeValidate from 'vee-validate';
import isURL from '../../../static/converter';
import isURL from '../../store/converter';
Vue.use(VeeValidate);
......@@ -266,7 +266,7 @@
width: 49%;
display: flex;
flex-direction: column;
align-items:stretch;
align-items: stretch;
justify-content: space-around;
}
......
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