Compare commits
5 Commits
v1.2.4
...
9a55d4c2f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a55d4c2f0 | ||
|
|
bf481da21e | ||
|
|
b0d225f7b8 | ||
|
|
5324787f23 | ||
|
|
bb626bf6b5 |
@@ -112,7 +112,7 @@ export default defineConfig((/* ctx */) => {
|
||||
//directives: [],
|
||||
|
||||
// Quasar plugins
|
||||
plugins: ['Notify', 'Dialog'],
|
||||
plugins: ['Cookies', 'Notify', 'Dialog'],
|
||||
},
|
||||
|
||||
// animations: 'all', // --- includes all animations
|
||||
|
||||
@@ -145,7 +145,7 @@ FridayShort: Vi
|
||||
Saturday: Sábado
|
||||
SaturdayShort: Sá
|
||||
Sunday: Domingo
|
||||
Sunday: Do
|
||||
SundayShort: Do
|
||||
currentPassword: Contraseña actual
|
||||
addFirstUser: Añadir primer usuario administrador
|
||||
report: Informe
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
filled
|
||||
emit-value
|
||||
map-options
|
||||
option-value="name"
|
||||
option-label="name"
|
||||
v-model="localMember.group"
|
||||
></q-select>
|
||||
@@ -107,7 +106,7 @@
|
||||
import DialogFrame from 'src/vueLib/dialog/DialogFrame.vue';
|
||||
import { type PropType, ref } from 'vue';
|
||||
import { appApi } from 'src/boot/axios';
|
||||
import type { Member } from 'src/vueLib/models/member';
|
||||
import type { Member, Members } from 'src/vueLib/models/member';
|
||||
import { useNotify } from 'src/vueLib/general/useNotify';
|
||||
import { i18n } from 'src/boot/lang';
|
||||
import type { Responsibles } from 'src/vueLib/models/responsible';
|
||||
@@ -127,7 +126,7 @@ const props = defineProps({
|
||||
type: Object as PropType<Responsibles>,
|
||||
},
|
||||
group: {
|
||||
type: Array,
|
||||
type: Object as PropType<Members>,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -164,6 +163,7 @@ async function save() {
|
||||
let payload = JSON.stringify([localMember.value]);
|
||||
if (newMember.value) {
|
||||
query = 'members/add';
|
||||
console.log(33, localMember.value);
|
||||
payload = JSON.stringify(localMember.value);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
<q-header elevated>
|
||||
<q-toolbar>
|
||||
<q-img
|
||||
v-if="localLogo !== undefined && localLogo !== ''"
|
||||
:src="localLogo"
|
||||
alt="Logo"
|
||||
style="width: 40px; height: 40px; background-color: var(--q-primary)"
|
||||
class="q-mr-sm"
|
||||
/>
|
||||
|
||||
<q-btn flat dense round icon="menu" aria-label="Menu" @click="toggleLeftDrawer" />
|
||||
|
||||
<q-toolbar-title class="text-primary-text"> {{ $t(appName) }} </q-toolbar-title>
|
||||
@@ -66,7 +68,7 @@
|
||||
<q-item v-if="!autorized" to="/login" exact clickable v-ripple @click="closeDrawer">
|
||||
<q-item-section>{{ $t('login') }}</q-item-section>
|
||||
</q-item>
|
||||
<!-- <q-item
|
||||
<q-item
|
||||
v-if="autorized || user.isPermittedTo('members', 'read')"
|
||||
to="/report"
|
||||
exact
|
||||
@@ -75,7 +77,7 @@
|
||||
@click="closeDrawer"
|
||||
>
|
||||
<q-item-section> {{ $t('report') }}</q-item-section>
|
||||
</q-item> -->
|
||||
</q-item>
|
||||
<q-item v-if="autorized" to="/stats" exact clickable v-ripple @click="closeDrawer">
|
||||
<q-item-section> {{ $t('stats') }}</q-item-section>
|
||||
</q-item>
|
||||
|
||||
@@ -24,8 +24,13 @@ export function getLocalSettings(): Settings {
|
||||
db = databaseName.value;
|
||||
}
|
||||
|
||||
let iconName = localStorage.getItem('icon');
|
||||
if (iconName === undefined || iconName === 'undefined') {
|
||||
iconName = '';
|
||||
}
|
||||
|
||||
return <Settings>{
|
||||
icon: localStorage.getItem('icon'),
|
||||
icon: iconName,
|
||||
appName: name,
|
||||
databaseName: db,
|
||||
primaryColor: localStorage.getItem('primaryColor'),
|
||||
|
||||
Reference in New Issue
Block a user