seat plan editor now rejects users if no loc sel

This commit is contained in:
2023-07-01 19:29:39 +02:00
parent fc030bd56e
commit c810f439ba
2 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@
data() {
return {
active: 0,
draggables: { 1: { 'x': 100, 'y':100, 'h': 100, 'w': 250, 'active': false, 'draggable': true, 'resizable': true, 'id': 1, 'origin': 1, 'shape':'rectangular', 'type': 'seat', 'startingRow': 1, 'seatCountingStartingPoint': 1, 'sector': 'A', 'text': { 'text': 'TestText', 'textSize': 20, 'colour': '#20FFFF' } }, 'ticketCount': 1 },
draggables: { 1: { 'x': 100, 'y':100, 'h': 100, 'w': 250, 'active': false, 'draggable': true, 'resizable': true, 'id': 1, 'origin': 1, 'shape':'rectangular', 'type': 'seat', 'startingRow': 1, 'seatCountingStartingPoint': 1, 'sector': 'A', 'text': { 'text': 'TestText', 'textSize': 20, 'colour': '#20FFFF' } } },
available: { 'redo': false, 'undo': false },
scaleFactor: 1,
sizePoll: null,

View File

@@ -18,18 +18,18 @@
import window from '@/components/seatplan/editor/window.vue';
export default {
data () {
return {
formData: {}
}
},
components: {
window,
},
methods: {
setup () {
checkLocationSelected () {
if ( !sessionStorage.getItem( 'locationID' ) ) {
this.$router.push( '/admin/locations' );
}
}
},
created() {
this.checkLocationSelected();
}
};
</script>