mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 05:14:23 +00:00
implement first part of occupied seat counter
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<h2>Admin Accounts</h2>
|
||||
<button @click="createAccount()">Create new account</button>
|
||||
<p>Before setting or editing permissions here, please read the corresponding section of the documentation <a href="https://libreevent.janishutz.com/docs/admin-panel/settings/admin-accounts#permissions" target="_blank">here</a>.
|
||||
<br>Usually, the permissions automatically set by the system on account creation should be appropriate.</p>
|
||||
<br>Usually, the permissions automatically set by the system on account creation should be appropriate. (TIP: Right click for more options)</p>
|
||||
<div v-for="account in adminAccounts" class="account" @click="showAccountSettings( account.username );" title="Edit permissions of this account (right click for more options)" @contextmenu="( e ) => { e.preventDefault(); openRightClickMenu( account.username, e ); }">
|
||||
<div class="location-name">
|
||||
<h3>{{ account.username }}</h3>
|
||||
@@ -175,9 +175,9 @@
|
||||
},
|
||||
createAccount() {
|
||||
this.$refs.popup.openPopup( 'Create new admin user', {
|
||||
'pagesSettings': {
|
||||
'display': 'Modify pages',
|
||||
'id': 'pagesSettings',
|
||||
'role': {
|
||||
'display': 'User role',
|
||||
'id': 'role',
|
||||
'tooltip':'With this setting you can choose one of the preset permissions for users. Account management is only allowed for the root user.',
|
||||
'value': 'eventManager',
|
||||
'type': 'select',
|
||||
@@ -233,7 +233,7 @@
|
||||
}
|
||||
},
|
||||
openRightClickMenu( id, event ) {
|
||||
this.$refs.rclk.openRightClickMenu( event, { 'edit': { 'command': 'openPermissions', 'symbol': 'edit', 'display': 'Edit permissions' }, 'delete': { 'command': 'deleteUser', 'symbol': 'delete', 'display': 'Delete User' } } )
|
||||
this.$refs.rclk.openRightClickMenu( event, { 'permissions': { 'command': 'openPermissions', 'symbol': 'edit', 'display': 'Edit permissions' }, 'password': { 'command': 'updatePassword', 'symbol': 'password', 'display': 'Edit password' }, 'delete': { 'command': 'deleteUser', 'symbol': 'delete', 'display': 'Delete User' } } )
|
||||
this.currentlyOpenMenu = id;
|
||||
},
|
||||
loadData() {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<p>The system is currently processing your order and you will be able to download your tickets within a moment's notice.</p>
|
||||
<p>You will receive an email with your tickets within the next few minutes</p>
|
||||
<p class="small">If the email does not arrive withing the next 10 minutes, please click <a href="/payments/resendTickets" target="_blank">here</a></p>
|
||||
<a href="/tickets/tickets.pdf" class="submit" style="display: none;" id="manual-download">Download manually</a>
|
||||
<button onclick="if ( confirm( 'Do you really want to leave this page? If you want to download the tickets directly, you will need to head to your account page and download the ticket from there or stay on this page and wait for the order to finish processing.' ) ) {
|
||||
location.href = '/' }" class="submit">Back to the home page</button>
|
||||
</div>
|
||||
@@ -53,6 +54,9 @@
|
||||
open( '/tickets/tickets.pdf' );
|
||||
source.close();
|
||||
}, 500 );
|
||||
setTimeout( () => {
|
||||
$( 'manual-download' ).slideDown( 500 );
|
||||
}, 2000 );
|
||||
} else if ( e.data === 'paymentOk' ) {
|
||||
self.$refs.notification.createNotification( 'Your payment has been marked as completed!', 5, 'ok', 'normal' );
|
||||
}
|
||||
@@ -68,7 +72,7 @@
|
||||
|
||||
if ( e.target.readyState == EventSource.CLOSED ) {
|
||||
self.$refs.notification.cancelNotification( startNotification );
|
||||
self.$refs.notification.createNotification( 'Could not connect to status service', 5, 'error', 'normal' );
|
||||
self.$refs.notification.createNotification( 'Disconnected from status service', 20, 'info', 'normal' );
|
||||
}
|
||||
}, false );
|
||||
}, 300 );
|
||||
|
||||
Reference in New Issue
Block a user