mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-06 22:46:03 +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">
|
||||||
<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 {
|
||||||
|
|
|
||||||
|
|
@ -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" />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue