fix #30, thumbnail

This commit is contained in:
lesion
2019-03-20 00:50:43 +01:00
parent c7a0b22076
commit 299d9656d7
6 changed files with 24 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ export default {
computed: {
...mapState(['user']),
imgPath () {
return this.event.image_path && process.env.VUE_APP_API + '/' + this.event.image_path
return this.event.image_path && process.env.VUE_APP_API + '/uploads/thumb/' + this.event.image_path
},
mine () {
return this.event.userId === this.user.id

View File

@@ -18,8 +18,8 @@
size='mini' :key='tag.tag') {{tag.tag}}
.ml-auto(v-if='mine')
hr
el-button(v-if='event.is_visible' plain type='warning' @click.prevents='toggle' icon='el-icon-remove') {{$t('Unconfirm')}}
el-button(v-else plain type='success' @click.prevents='toggle' icon='el-icon-remove') {{$t('Confirm')}}
el-button(v-if='event.is_visible' plain type='warning' @click.prevents='toggle' icon='el-icon-view') {{$t('Unconfirm')}}
el-button(v-else plain type='success' @click.prevents='toggle' icon='el-icon-view') {{$t('Confirm')}}
el-button(plain type='danger' @click.prevent='remove' icon='el-icon-remove') {{$t('Remove')}}
el-button(plain type='primary' @click='$router.replace("/edit/"+event.id)') <v-icon color='orange' name='edit'/> {{$t('Edit')}}
@@ -48,7 +48,7 @@ export default {
computed: {
...mapState(['user']),
imgPath () {
return this.event.image_path && process.env.VUE_APP_API + '/' + this.event.image_path
return this.event.image_path && process.env.VUE_APP_API + '/uploads/' + this.event.image_path
},
mine () {
return this.event.userId === this.user.id || this.user.is_admin

View File

@@ -60,6 +60,7 @@ const it = {
Password: 'Password',
Email: 'Email',
User: 'Utente',
Unconfirm: 'Disabilita',
Confirm: 'Conferma',
Events: 'Eventi',
Color: 'Colore',