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() { data() {
return { return {
active: 0, 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 }, available: { 'redo': false, 'undo': false },
scaleFactor: 1, scaleFactor: 1,
sizePoll: null, sizePoll: null,

View File

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