Skip to content

Commit 3a2d173

Browse files
committed
FIX useless items
1 parent b0ea378 commit 3a2d173

File tree

5 files changed

+49
-56
lines changed

5 files changed

+49
-56
lines changed

app/src/components/appbar/Menu.vue

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ q-btn(flat icon="mdi-dots-grid" size="xl")
33
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Apps
44
q-menu(max-width="350px" max-height="350px").q-pa-md
55
.row
6-
.col-4(v-for="app in apps" :key="app.name")
6+
.col-4(v-for="(app, key) in apps" :key="key")
77
q-btn(flat stack dense :to="app.to" rounded).full-width
88
q-icon(:name="app.icon.name" :color="app.icon.color" size="xl")
99
q-badge(v-if="app.badge" :color="app.badge.color" floating) {{ app.badge.value }}
1010
div.text-center(:class="`text-${app.title.color}`") {{ app.title.name }}
11-
11+
1212
</template>
1313

1414
<script lang="ts" setup>
@@ -39,6 +39,7 @@ const apps: {
3939
name: string
4040
color: string
4141
}
42+
badge?: { color: string, value: number | undefined }
4243
to: string
4344
}[] = [
4445
{
@@ -64,7 +65,7 @@ const apps: {
6465
to: `/tickets?filters[^envelope.assigned.name]=/${user.displayName}/&filters[@lifestep][]=1&${baseFilter}`,
6566
badge: {
6667
color: 'red',
67-
value: data.value.total
68+
value: data?.value?.total,
6869
}
6970
},
7071
{
@@ -78,40 +79,29 @@ const apps: {
7879
},
7980
to: `/tickets?filters[@lifestep][]=1&${baseFilter}`
8081
},
81-
{
82-
title: {
83-
name: 'Profil',
84-
color: 'primary'
85-
},
86-
icon: {
87-
name: 'mdi-account',
88-
color: 'primary'
89-
},
90-
to: '/profil'
91-
},
92-
{
93-
title: {
94-
name: 'Paramètres',
95-
color: 'primary'
96-
},
97-
icon: {
98-
name: 'mdi-cog',
99-
color: 'primary'
100-
},
101-
to: '/parametres'
102-
},
103-
{
104-
title: {
105-
name: 'Déconnexion',
106-
color: 'negative'
107-
},
108-
icon: {
109-
name: 'mdi-logout',
110-
color: 'negative'
111-
},
112-
to: '/deconnexion'
113-
}
82+
// {
83+
// title: {
84+
// name: 'Profil',
85+
// color: 'primary'
86+
// },
87+
// icon: {
88+
// name: 'mdi-account',
89+
// color: 'primary'
90+
// },
91+
// to: '/profil'
92+
// },
93+
// {
94+
// title: {
95+
// name: 'Paramètres',
96+
// color: 'primary'
97+
// },
98+
// icon: {
99+
// name: 'mdi-cog',
100+
// color: 'primary'
101+
// },
102+
// to: '/parametres'
103+
// },
114104
]
115105
116106
117-
</script>
107+
</script>

app/src/components/appbar/RightButtons.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template lang='pug'>
22
div
3-
q-btn(v-for="button in buttons" :key="button.icon" round flat :icon="button.icon" size="md").q-mx-sm
3+
//q-btn(v-for="button in buttons" :key="button.icon" round flat :icon="button.icon" size="md").q-mx-sm
44
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") {{ button.name }}
55
q-btn-dropdown(icon="mdi-account-circle-outline" round flat size="md")
66
q-list
@@ -18,21 +18,21 @@ div
1818

1919
<script lang='ts' setup>
2020
const buttons = [
21-
{
22-
icon: 'mdi-cog',
23-
name: 'Paramètres',
24-
to: '/settings',
25-
},
26-
{
27-
icon: 'mdi-bell',
28-
name: 'Notifications',
29-
to: '#',
30-
},
31-
{
32-
icon: 'mdi-help',
33-
name: 'Aide',
34-
to: '#',
35-
},
21+
// {
22+
// icon: 'mdi-cog',
23+
// name: 'Paramètres',
24+
// to: '/settings',
25+
// },
26+
// {
27+
// icon: 'mdi-bell',
28+
// name: 'Notifications',
29+
// to: '#',
30+
// },
31+
// {
32+
// icon: 'mdi-help',
33+
// name: 'Aide',
34+
// to: '#',
35+
// },
3636
{
3737
icon: 'mdi-logout',
3838
name: 'Déconnexion',

app/src/components/appbar/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ q-header
88
q-separator(vertical dark inset).q-mx-md
99
tk-AppbarMenu
1010
q-space
11-
tk-AppbarSearchfield
12-
q-separator(vertical dark inset).q-mx-md
11+
//tk-AppbarSearchfield
12+
//q-separator(vertical dark inset).q-mx-md
1313
tk-AppbarRightButtons
1414
</template>
1515

app/src/composables/pushQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function pushQuery(payload: { value: any; key: string; multiple?: b
4040
query[key] = filters
4141
}
4242
}
43-
await router.push({
43+
await router.replace({
4444
query,
4545
})
4646
}

service/src/tickets/thread/_schemas/parts/mailinfo.part.schema.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@ export class MailinfoPart extends Document {
1414

1515
@Prop({
1616
type: MailaddressPartSchema,
17+
default: {},
1718
})
1819
public from: MailaddressPart
1920

2021
@Prop({
2122
type: [MailaddressPartSchema],
23+
default: [],
2224
})
2325
public to?: MailaddressPart[]
2426

2527
@Prop({
2628
type: [MailaddressPartSchema],
29+
default: [],
2730
})
2831
public cc?: MailaddressPart[]
2932

0 commit comments

Comments
 (0)