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-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') }}
</a>
</div>
@ -37,7 +37,8 @@ export default {
},
props: {
notificationsUrl: String,
unseenNotificationsCount: Number
unseenNotificationsCount: Number,
preferencesUrl: String
},
data() {
return {

View file

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