Export Movements to CSV File

fix Visibility for a Circuit
This commit is contained in:
Paolo Arena
2022-09-19 14:37:44 +02:00
parent ce79360d03
commit c75b78ea98
21 changed files with 122 additions and 37 deletions

View File

@@ -206,8 +206,6 @@ export const costanti = {
ADMIN_GROUPS: 40,
FIND_CIRCUIT: 50,
MY_CIRCUITS: 51,
CREATE_CIRCUIT: 52,
MANAGE_CIRCUITS: 53,
ADMIN_CIRCUITS: 54,
ASK_SENT_CIRCUIT: 55,

View File

@@ -2197,7 +2197,7 @@ export const tools = {
isManager() {
const userStore = useUserStore()
return userStore.isManager
return userStore.isManager || userStore.isAdmin
},
isSocioResidente() {
@@ -2465,6 +2465,10 @@ export const tools = {
return date.formatDate(mytimestamp, 'YYYY-MM-DD HH:mm')
},
getstrYYMMDDHHMMDateTime(mytimestamp: Date | number | string | undefined) {
return date.formatDate(mytimestamp, 'YYYY-MM-DD_HH:mm')
},
getstrYYMMDDDateTimeAll(mytimestamp: Date | number | string | undefined) {
return date.formatDate(mytimestamp, 'YYYY-MM-DD HH:mm:ss')
},

View File

@@ -650,6 +650,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
// If is not already stored in DB, then show the message to the user.
if (!this.wasAlreadySubscribed || notreg) {
/*
options = {
title: tools.translate('notification.title_subscribed', [{
strin: 'sitename',
@@ -658,6 +659,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
content: translate('notification.subscribed'),
openUrl: '/',
}
*/
}
const myres = {
@@ -720,8 +723,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
}
})
}).catch((err) => {
console.error('err ready service worker', err)
})
console.error('err ready service worker', err)
})
}
}