Changed hardcoded preferences link to vue variable

This commit is contained in:
Giga Chubinidze 2024-01-16 05:20:00 +04:00
parent 4e29b4dab8
commit b46f0f8d4b
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<div class="sci--navigation--notificaitons-flyout"> <div class="sci--navigation--notificaitons-flyout">
<div class="sci--navigation--notificaitons-flyout-title"> <div class="sci--navigation--notificaitons-flyout-title">
{{ i18n.t('nav.notifications.title') }} {{ i18n.t('nav.notifications.title') }}
<a class="ml-auto cursor-pointer" :href="'/users/settings/account/preferences'" :title="i18n.t('nav.settings')"> <a class="ml-auto cursor-pointer" :href="this.preferencesUrl" :title="i18n.t('nav.settings')">
{{ i18n.t('nav.settings') }} {{ i18n.t('nav.settings') }}
</a> </a>
</div> </div>
@ -37,7 +37,8 @@ export default {
}, },
props: { props: {
notificationsUrl: String, notificationsUrl: String,
unseenNotificationsCount: Number unseenNotificationsCount: Number,
preferencesUrl: String
}, },
data() { data() {
return { return {

View file

@ -36,6 +36,7 @@
<NotificationsFlyout <NotificationsFlyout
v-if="notificationsOpened" v-if="notificationsOpened"
:notificationsUrl="notificationsUrl" :notificationsUrl="notificationsUrl"
:preferencesUrl="this.userMenu[1].url"
:unseenNotificationsCount="unseenNotificationsCount" :unseenNotificationsCount="unseenNotificationsCount"
@update:unseenNotificationsCount="checkUnseenNotifications()" @update:unseenNotificationsCount="checkUnseenNotifications()"
@close="notificationsOpened = false" /> @close="notificationsOpened = false" />