Commit c649822f authored by Micheal Mand's avatar Micheal Mand

Code formatting

parent f602a2b2
<template> <template>
<div> <div>
<label class="el-form-item__label">{{ getFieldLabel() }}</label> <label class="el-form-item__label">{{ getFieldLabel() }}</label>
<div class="jsThumbnailImageWrapper jsSingleThumbnailWrapper" v-if="hasSelectedMedia" > <div class="jsThumbnailImageWrapper jsSingleThumbnailWrapper" v-if="hasSelectedMedia">
<figure v-for="media in this.selectedMedia" :key="media.id"> <figure v-for="media in this.selectedMedia" :key="media.id">
<img :src="media.small_thumb" alt="" v-if="media.is_image"/> <img :src="media.small_thumb" alt="" v-if="media.is_image"/>
<i :class="`fa ${media.fa_icon}`" style="font-size: 60px;" v-if="! media.is_image"></i> <i :class="`fa ${media.fa_icon}`" style="font-size: 60px;" v-if="! media.is_image"></i>
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
<el-button type="button" @click="dialogVisible = true">{{ trans('media.Browse') }}</el-button> <el-button type="button" @click="dialogVisible = true">{{ trans('media.Browse') }}</el-button>
</div> </div>
<el-dialog <el-dialog
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
fullscreen fullscreen
:before-close="handleClose"> :before-close="handleClose">
<media-list single-modal :event-name="this.eventName"></media-list> <media-list single-modal :event-name="this.eventName"></media-list>
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
<script> <script>
import axios from 'axios'; import axios from 'axios';
import UploadZone from '../../../../Media/Assets/js/components/UploadZone.vue';
import MediaList from '../../../../Media/Assets/js/components/MediaList.vue';
import _ from 'lodash'; import _ from 'lodash';
import UploadZone from './UploadZone.vue';
import MediaList from './MediaList.vue';
import StringHelpers from '../../../../Core/Assets/js/mixins/StringHelpers.vue'; import StringHelpers from '../../../../Core/Assets/js/mixins/StringHelpers.vue';
export default { export default {
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
}, },
fetchMedia() { fetchMedia() {
axios.get(route('api.media.get-by-zone-and-entity', { axios.get(route('api.media.get-by-zone-and-entity', {
zone: this.zone, zone: this.zone,
entity: this.entity, entity: this.entity,
entity_id: this.entityId, entity_id: this.entityId,
})) }))
.then((response) => { .then((response) => {
this.selectedMedia = response.data.data; this.selectedMedia = response.data.data;
_.forEach(this.selectedMedia, (file) => { _.forEach(this.selectedMedia, (file) => {
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
}; };
</script> </script>
<style> <style>
.remove-media{ .remove-media {
position: absolute; position: absolute;
top: 5px; top: 5px;
left: 5px; left: 5px;
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
</div> </div>
<el-dialog <el-dialog
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
fullscreen fullscreen
:before-close="handleClose"> :before-close="handleClose">
<media-list single-modal :event-name="this.eventName"></media-list> <media-list single-modal :event-name="this.eventName"></media-list>
...@@ -76,10 +76,10 @@ ...@@ -76,10 +76,10 @@
}, },
fetchMedia() { fetchMedia() {
axios.get(route('api.media.find-first-by-zone-and-entity', { axios.get(route('api.media.find-first-by-zone-and-entity', {
zone: this.zone, zone: this.zone,
entity: this.entity, entity: this.entity,
entity_id: this.entityId, entity_id: this.entityId,
})) }))
.then((response) => { .then((response) => {
this.$emit('singleFileSelected', _.merge(response.data.data, { zone: this.zone })); this.$emit('singleFileSelected', _.merge(response.data.data, { zone: this.zone }));
this.selectedMedia = response.data.data; this.selectedMedia = response.data.data;
......
...@@ -24,4 +24,4 @@ export default { ...@@ -24,4 +24,4 @@ export default {
this[model].medias_multi[event.zone].files = _.reject(this[model].medias_multi[event.zone].files, media => media === event.id); this[model].medias_multi[event.zone].files = _.reject(this[model].medias_multi[event.zone].files, media => media === event.id);
}, },
}, },
}; };
\ No newline at end of file
...@@ -5,5 +5,5 @@ export default { ...@@ -5,5 +5,5 @@ export default {
[event.zone]: event.id, [event.zone]: event.id,
}); });
}, },
} },
} };
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