mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Changed hardcoded preferences link to vue variable
This commit is contained in:
parent
4e29b4dab8
commit
b46f0f8d4b
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
<NotificationsFlyout
|
||||
v-if="notificationsOpened"
|
||||
:notificationsUrl="notificationsUrl"
|
||||
:preferencesUrl="this.userMenu[1].url"
|
||||
:unseenNotificationsCount="unseenNotificationsCount"
|
||||
@update:unseenNotificationsCount="checkUnseenNotifications()"
|
||||
@close="notificationsOpened = false" />
|
||||
|
|
Loading…
Reference in a new issue