update quasar
This commit is contained in:
@@ -160,13 +160,15 @@ export default function () {
|
||||
function getNotifText($t: any, notif: INotif) {
|
||||
|
||||
let descr = notif.descr
|
||||
let status = notif.status
|
||||
|
||||
if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_FRIENDS) {
|
||||
if (notif.status === shared_consts.StatusNotifs.STATUS_FRIENDS_ACCEPTED) {
|
||||
if (status === shared_consts.StatusNotifs.STATUS_FRIENDS_ACCEPTED) {
|
||||
descr += '<br><em>' + $t('friends.accepted') + '</em>'
|
||||
} else if (notif.status === shared_consts.StatusNotifs.STATUS_FRIENDS_REFUSED) {
|
||||
} else if (status === shared_consts.StatusNotifs.STATUS_FRIENDS_REFUSED) {
|
||||
descr += '<br><em>' + $t('friends.refused') + '</em>'
|
||||
}
|
||||
|
||||
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS) {
|
||||
if (notif.typeid === shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ) {
|
||||
// console.log('notif.extrarec', notif.extrarec)
|
||||
@@ -175,11 +177,11 @@ export default function () {
|
||||
}
|
||||
}
|
||||
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_HANDSHAKE) {
|
||||
if (notif.status === shared_consts.StatusNotifs.STATUS_HANDSHAKE_ACCEPTED) {
|
||||
if (status === shared_consts.StatusNotifs.STATUS_HANDSHAKE_ACCEPTED) {
|
||||
descr += '<br><em>' + $t('handshake.accepted') + '</em>'
|
||||
}
|
||||
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_FAVORITE) {
|
||||
// if (notif.status === shared_consts.StatusNotifs.STATUS_HANDSHAKE_ACCEPTED) {
|
||||
// if (status === shared_consts.StatusNotifs.STATUS_HANDSHAKE_ACCEPTED) {
|
||||
// descr += '<br><em>' + $t('handshake.accepted') + '</em>'
|
||||
// }
|
||||
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS) {
|
||||
@@ -190,15 +192,15 @@ export default function () {
|
||||
}
|
||||
}
|
||||
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_GROUPS) {
|
||||
if (notif.status === shared_consts.GroupsNotifs.STATUS_GROUPS_ACCEPTED) {
|
||||
if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_ACCEPTED) {
|
||||
descr += '<br><em>' + $t('groups.accepted') + '</em>'
|
||||
} else if (notif.status === shared_consts.GroupsNotifs.STATUS_GROUPS_REFUSED) {
|
||||
} else if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_REFUSED) {
|
||||
descr += '<br><em>' + $t('groups.refused') + '</em>'
|
||||
} else if (notif.status === shared_consts.GroupsNotifs.STATUS_GROUPS_BLOCKED) {
|
||||
} else if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_BLOCKED) {
|
||||
descr += '<br><em>' + $t('groups.blocked') + '</em>'
|
||||
} else if (notif.status === shared_consts.GroupsNotifs.STATUS_GROUPS_DELETED) {
|
||||
} else if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_DELETED) {
|
||||
descr += '<br><em>' + $t('groups.deleted') + '</em>'
|
||||
} else if (notif.status === shared_consts.GroupsNotifs.STATUS_GROUPS_REMOVED) {
|
||||
} else if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_REMOVED) {
|
||||
descr += '<br><em>' + $t('groups.removed') + '</em>'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user