Notification: Set a new Friendship and Accepted Friendship

This commit is contained in:
Paolo Arena
2022-07-26 15:46:29 +02:00
parent e2006e683b
commit 43619ec719
15 changed files with 78 additions and 39 deletions

View File

@@ -32,6 +32,7 @@ export default defineComponent({
const myuser = ref(<IUserFields>{_id: '', username: '', name: '', surname: '', profile: DefaultProfile})
const risultato = ref('')
const mynotif = ref('')
const title = ref('')
const notifdirtype = ref(1)
const notifidtype = ref(1)
@@ -109,6 +110,7 @@ export default defineComponent({
sender: userStore.my.username,
dest: myuser.value.username,
descr: mynotif.value,
title: title.value,
}
await notifStore.SendNotifEvent(notif)
@@ -133,6 +135,7 @@ export default defineComponent({
sendNotifToUser,
risultato,
mynotif,
title,
notifdirtype,
notifidtype,
listnotif,

View File

@@ -2,19 +2,27 @@
<CMyPage img="" :title="$t('otherpages.admin.userpanel')" keywords="" :description="$t('otherpages.admin.userpanel')">
<q-btn color="green" label="Esporta Lista Email" @click="exportListaEmail"></q-btn>
<div class="q-ma-sm row" style="min-width: 300px;">
<div class="q-ma-sm row bordo_stondato" style="min-width: 300px; ">
<q-select rounded outlined v-model="notifdirtype" :options="listnotiftype" label="Tipo" emit-value map-options>
</q-select>
<div class="row">
<q-select rounded outlined v-model="notifdirtype" :options="listnotiftype" label="Tipo" emit-value map-options>
</q-select>
<q-select rounded outlined v-model="notifidtype" :options="listnotifid" label="Notifica" emit-value map-options>
</q-select>
<q-select rounded outlined v-model="notifidtype" :options="listnotifid" label="Notifica" emit-value map-options>
</q-select>
</div>
<q-input
v-model="mynotif" type="textarea" autofocus label="Notifica da Inviare"
input-class="myinput-area"
style="height: 100px; width: 500px;"></q-input>
<q-btn color="green" :label="`Invia Notifica a ` + myuser.username" @click="sendNotifToUser"></q-btn>
<div class="row">
<q-input
v-model="title" label="Titolo"
style="width: 300px;"></q-input>
<q-input
v-model="mynotif" label="Notifica da Inviare"
input-class="myinput-area"
style="width: 300px;"></q-input>
</div>
<br>
<q-btn class="centermydiv q-ma-sm" color="green" :label="`Invia Notifica a ` + myuser.username" @click="sendNotifToUser"></q-btn>
</div>