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