Notification: Set a new Friendship and Accepted Friendship
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user