Skip to content

Commit

Permalink
A little fix: was showing areas w/ no customer
Browse files Browse the repository at this point in the history
getting rid of console statements
  • Loading branch information
aldorr committed Mar 25, 2020
1 parent d617ef5 commit 39752f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'eslint:recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warning' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
Expand Down
6 changes: 3 additions & 3 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const store = new Vuex.Store({
});
}).catch(function(error) {
// Handle error.
console.log(error)
commit('setError', error)
});
},

Expand Down Expand Up @@ -238,8 +238,8 @@ const store = new Vuex.Store({
// eslint-disable-next-line
newEntry({ commit }, payload) {
let myRef = 'users/' + payload.user + '/timeentries/'
console.log(myRef)
console.log(payload.newEntry)
// console.log(myRef)
// console.log(payload.newEntry)
return firebase
.database()
.ref('users')
Expand Down
3 changes: 2 additions & 1 deletion src/views/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
</ValidationProvider>

<ValidationProvider name="bereich" rules="required" v-slot="{ errors, valid }">
<b-field label="Bereich wählen" :type="{'is-danger': errors[0], 'is-success': valid}"
<b-field label="Bereich wählen" v-if="kunde !== ''"
:type="{'is-danger': errors[0], 'is-success': valid}"
:message="errors">
<b-autocomplete expanded v-model="bereich" ref="autocomplete"
open-on-focus :data="filteredBereicheArray"
Expand Down

0 comments on commit 39752f8

Please sign in to comment.