mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
fix zoom, notifications, add notes
This commit is contained in:
@@ -1,2 +1,4 @@
|
|||||||
# Account view:
|
# Account view:
|
||||||
- Load: email, settings, change pw, change mail, see all tickets
|
- Load: email, settings, change pw, change mail, see all tickets
|
||||||
|
|
||||||
|
- set page title based on settings
|
||||||
@@ -259,6 +259,7 @@
|
|||||||
sessionStorage.setItem( 'seatplan', JSON.stringify( this.scaleDown( this.draggables ) ) );
|
sessionStorage.setItem( 'seatplan', JSON.stringify( this.scaleDown( this.draggables ) ) );
|
||||||
},
|
},
|
||||||
saveDraft () {
|
saveDraft () {
|
||||||
|
let progressNotification = this.$refs.notification.createNotification( 'Saving as draft', 5, 'progress', 'normal' );
|
||||||
sessionStorage.setItem( 'seatplan', JSON.stringify( this.scaleDown( this.draggables ) ) );
|
sessionStorage.setItem( 'seatplan', JSON.stringify( this.scaleDown( this.draggables ) ) );
|
||||||
this.$refs.notification.createNotification( 'Saved as draft', 5, 'ok', 'normal' );
|
this.$refs.notification.createNotification( 'Saved as draft', 5, 'ok', 'normal' );
|
||||||
// TODO: Save to server
|
// TODO: Save to server
|
||||||
@@ -294,13 +295,14 @@
|
|||||||
zoom ( scale ) {
|
zoom ( scale ) {
|
||||||
if ( scale == 1 ) {
|
if ( scale == 1 ) {
|
||||||
this.zoomFactor = 1;
|
this.zoomFactor = 1;
|
||||||
|
sessionStorage.setItem( 'zoom', this.zoomFactor );
|
||||||
this.loadSeatplan();
|
this.loadSeatplan();
|
||||||
} else {
|
} else {
|
||||||
if ( ( this.zoomFactor < 0.3 && scale < 0 ) || ( this.zoomFactor > 2.9 && scale > 0 ) ) {
|
if ( ( this.zoomFactor < 0.3 && scale < 0 ) || ( this.zoomFactor > 2.9 && scale > 0 ) ) {
|
||||||
if ( this.zoomFactor < 0.3 ) {
|
if ( this.zoomFactor < 0.3 ) {
|
||||||
this.$refs.notification.createNotification( 'Minimum zoom factor reached', 5, 'error', 'normal' );
|
this.$refs.notification.createNotification( 'Minimum zoom factor reached', 5, 'warning', 'normal' );
|
||||||
} else {
|
} else {
|
||||||
this.$refs.notification.createNotification( 'Maximum zoom factor reached', 5, 'error', 'normal' );
|
this.$refs.notification.createNotification( 'Maximum zoom factor reached', 5, 'warning', 'normal' );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.zoomFactor += scale;
|
this.zoomFactor += scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user