proper links and fix user detection
This commit is contained in:
parent
fcf62a13ed
commit
f63ee29fac
|
@ -31,7 +31,7 @@ const UpdateNotification = {
|
||||||
},
|
},
|
||||||
shouldShow () {
|
shouldShow () {
|
||||||
return !this.$store.state.instance.disableUpdateNotification &&
|
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.updateCounter < CURRENT_UPDATE_COUNTER &&
|
||||||
!this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
|
!this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
shape-margin: 0.5em;
|
shape-margin: 0.5em;
|
||||||
filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
|
filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spacer-top {
|
.spacer-top {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Modal
|
<Modal
|
||||||
v-if="shouldShow"
|
|
||||||
:is-open="!!shouldShow"
|
:is-open="!!shouldShow"
|
||||||
class="UpdateNotification"
|
class="UpdateNotification"
|
||||||
:no-background="true"
|
:no-background="true"
|
||||||
|
@ -22,14 +21,18 @@
|
||||||
<p>
|
<p>
|
||||||
{{ $t('update.big_update_content') }}
|
{{ $t('update.big_update_content') }}
|
||||||
</p>
|
</p>
|
||||||
<p class="extra-info">
|
<i18n-t keypath="update.update_bugs" tag="p" class="extra-info">
|
||||||
{{ $t('update.update_bugs') }}
|
<template #pleromaGitlab>
|
||||||
</p>
|
<a target="_blank" href="https://git.pleroma.social/">{{ $t('update.update_bugs_gitlab') }}</a>
|
||||||
<p class="extra-info">
|
</template>
|
||||||
{{ $t('update.update_changelog') }}
|
</i18n-t>
|
||||||
</p>
|
<i18n-t keypath="update.update_changelog" tag="p" class="extra-info">
|
||||||
</div>
|
<template #theFullChangelog>
|
||||||
<div class="spacer-bottom"/>
|
<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>
|
</div>
|
||||||
<div class="panel-footer">
|
<div class="panel-footer">
|
||||||
|
|
|
@ -968,7 +968,7 @@
|
||||||
"big_update_content": "We haven't had a release in a while, so things might look and feel different than what you're used to.",
|
"big_update_content": "We haven't had a release in a while, so things might look and feel different than what you're used to.",
|
||||||
"update_bugs": "Please report any issues and bugs on {pleromaGitlab}, as we have changed a lot, and although we test thoroughly and use development versions ourselves, we may have missed some things. We welcome your feedback and suggestions on issues you might encounter, or how to improve Pleroma and Pleroma-FE.",
|
"update_bugs": "Please report any issues and bugs on {pleromaGitlab}, as we have changed a lot, and although we test thoroughly and use development versions ourselves, we may have missed some things. We welcome your feedback and suggestions on issues you might encounter, or how to improve Pleroma and Pleroma-FE.",
|
||||||
"update_bugs_gitlab": "Pleroma GitLab",
|
"update_bugs_gitlab": "Pleroma GitLab",
|
||||||
"update_changelog": "For more details on what's changed, see {theFullChangelog}",
|
"update_changelog": "For more details on what's changed, see {theFullChangelog}.",
|
||||||
"update_changelog_here": "here"
|
"update_changelog_here": "the full changelog"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue