2022-08-01 21:37:48 +00:00
|
|
|
<template>
|
|
|
|
<Modal
|
2022-08-07 23:01:07 +00:00
|
|
|
:is-open="!!shouldShow"
|
2022-08-01 21:37:48 +00:00
|
|
|
class="UpdateNotification"
|
|
|
|
:no-background="true"
|
|
|
|
>
|
2022-08-03 22:56:52 +00:00
|
|
|
<div
|
|
|
|
class="UpdateNotificationModal panel"
|
|
|
|
:class="{ '-peek': !showingMore }"
|
|
|
|
>
|
2022-08-01 21:37:48 +00:00
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="title">
|
|
|
|
{{ $t('update.big_update_title') }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2022-08-03 22:56:52 +00:00
|
|
|
<div class="content" ref="content">
|
|
|
|
<img class="pleroma-tan" :src="pleromaTanVariant" :style="pleromaTanStyles"/>
|
|
|
|
<div class="spacer-top"/>
|
|
|
|
<div class="text">
|
|
|
|
<p>
|
|
|
|
{{ $t('update.big_update_content') }}
|
|
|
|
</p>
|
2022-08-07 23:14:09 +00:00
|
|
|
<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"/>
|
2022-08-03 22:56:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button
|
|
|
|
class="button-default"
|
|
|
|
@click.prevent="neverShowAgain"
|
|
|
|
>
|
|
|
|
{{ $t("general.never_show_again") }}
|
|
|
|
</button>
|
2022-08-01 21:37:48 +00:00
|
|
|
<button
|
2022-08-03 22:56:52 +00:00
|
|
|
class="button-default"
|
2022-08-03 23:12:04 +00:00
|
|
|
@click.prevent="toggleShow"
|
2022-08-03 22:56:52 +00:00
|
|
|
v-if="!showingMore"
|
|
|
|
>
|
2022-08-01 21:37:48 +00:00
|
|
|
{{ $t("general.show_more") }}
|
|
|
|
</button>
|
|
|
|
<button
|
2022-08-03 22:56:52 +00:00
|
|
|
class="button-default"
|
|
|
|
@click.prevent="dismiss"
|
|
|
|
>
|
|
|
|
{{ $t("general.dismiss") }}
|
2022-08-01 21:37:48 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./update_notification.js"></script>
|
|
|
|
|
|
|
|
<style src="./update_notification.scss" lang="scss"></style>
|