various bugfixes

This commit is contained in:
2023-09-17 17:00:00 +02:00
parent 6dd11300d3
commit daba3332e8
8 changed files with 16 additions and 17 deletions

View File

@@ -86,23 +86,26 @@ export default {
methods: {
updateOrigin () {
if ( this.origin === 1 ) {
this.style = 'border-style: none none solid none';
this.style = 'border-style: none none solid none;';
this.circularStyle = 'top: 0; right: 100%;';
this.trapezoidStyle = 'rotate: 45deg';
} else if ( this.origin === 2 ) {
this.style = 'border-style: none solid none none';
this.style = 'border-style: none solid none none;';
this.circularStyle = 'top: 0; right: 0;';
this.trapezoidStyle = 'rotate: 135deg';
} else if ( this.origin === 3 ) {
this.style = 'border-style: solid none none none';
this.style = 'border-style: solid none none none;';
this.circularStyle = 'top: -100%; right: 0;';
this.trapezoidStyle = 'rotate: 225deg';
} else if ( this.origin === 4 ) {
this.style = 'border-style: none none none solid';
this.style = 'border-style: none none none solid;';
this.circularStyle = 'top: -100%; right: 100%;';
this.trapezoidStyle = 'rotate: 315deg';
}
this.style += ` background-color: ${this.color.fg}; color: ${this.color.fg}`;
this.style += ` background-color: ${this.color}; color: ${this.color}`;
this.circularStyle += ` background-color: ${this.color}; color: ${this.color}`;
this.trapezoidStyle += ` background-color: ${this.color}; color: ${this.color}`;
console.log( this.style );
},
},
watch: {

View File

@@ -31,8 +31,9 @@
<stagesSeatplanComponent :ref="'component' + draggable.id" v-else-if="draggable.type == 'stage'" :origin="draggable.origin" :shape="draggable.shape"></stagesSeatplanComponent>
<standingSeatplanComponent :ref="'component' + draggable.id" v-else-if="draggable.type == 'stand'" :origin="draggable.origin"
:shape="draggable.shape" @click="standing( draggable.id )"></standingSeatplanComponent>
<textFieldSeatplanComponent :ref="'component' + draggable.id" v-else-if="draggable.type == 'text'" :text="draggable.text.text" :text-size="draggable.text.textSize" :colour="draggable.text.colour" :origin="draggable.origin" :scale-factor="scaleFactor"></textFieldSeatplanComponent>
:shape="draggable.shape" @click="standing( draggable.id )" :color="draggable.data.categoryInfo.color"></standingSeatplanComponent>
<textFieldSeatplanComponent :ref="'component' + draggable.id" v-else-if="draggable.type == 'text'" :text="draggable.text.text" :text-size="draggable.text.textSize"
:colour="draggable.text.colour" :origin="draggable.origin" :scale-factor="scaleFactor"></textFieldSeatplanComponent>
</Vue3DraggableResizable>
</div>
</div>

View File

@@ -83,7 +83,7 @@
<tr>
<td><div class="category-details">Colour:</div></td>
<td>
{{ event.currency }} <input type="text" data-coloris v-model="category.fg" onkeydown="return false;">
<input type="text" data-coloris v-model="category.fg" onkeydown="return false;">
</td>
</tr>
<tr v-if="!hasSeatPlan">

View File

@@ -44,7 +44,6 @@
let self = this;
source.onmessage = ( e ) => {
console.log( e );
if ( e.data === 'ready' ) {
self.$refs.notification.cancelNotification( startNotification );
self.$refs.notification.createNotification( 'Your tickets are ready! Starting download...', 10, 'progress', 'normal' );