proper links and fix user detection

This commit is contained in:
Henry Jameson 2022-08-08 02:14:09 +03:00
commit f63ee29fac
4 changed files with 16 additions and 12 deletions

View file

@ -31,7 +31,7 @@ const UpdateNotification = {
},
shouldShow () {
return !this.$store.state.instance.disableUpdateNotification &&
this.$store.state.currentUser &&
this.$store.state.users.currentUser &&
this.$store.state.serverSideStorage.flagStorage.updateCounter < CURRENT_UPDATE_COUNTER &&
!this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
}

View file

@ -69,6 +69,7 @@
position: relative;
shape-margin: 0.5em;
filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
pointer-events: none;
}
.spacer-top {

View file

@ -1,6 +1,5 @@
<template>
<Modal
v-if="shouldShow"
:is-open="!!shouldShow"
class="UpdateNotification"
:no-background="true"
@ -22,14 +21,18 @@
<p>
{{ $t('update.big_update_content') }}
</p>
<p class="extra-info">
{{ $t('update.update_bugs') }}
</p>
<p class="extra-info">
{{ $t('update.update_changelog') }}
</p>
</div>
<div class="spacer-bottom"/>
<i18n-t keypath="update.update_bugs" tag="p" class="extra-info">
<template #pleromaGitlab>
<a target="_blank" href="https://git.pleroma.social/">{{ $t('update.update_bugs_gitlab') }}</a>
</template>
</i18n-t>
<i18n-t keypath="update.update_changelog" tag="p" class="extra-info">
<template #theFullChangelog>
<a target="_blank" href="https://pleroma.social/announcements/">{{ $t('update.update_changelog_here') }}</a>
</template>
</i18n-t>
</div>
<div class="spacer-bottom"/>
</div>
</div>
<div class="panel-footer">