From dbfca224d812c2ba80a48852ba047bb65c4c6dd9 Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Thu, 4 Aug 2022 01:56:52 +0300
Subject: server-side storage for flags

---
 .../update_notification/update_notification.vue    | 52 +++++++++++++++-------
 1 file changed, 36 insertions(+), 16 deletions(-)

(limited to 'src/components/update_notification/update_notification.vue')

diff --git a/src/components/update_notification/update_notification.vue b/src/components/update_notification/update_notification.vue
index e7118d81..793966eb 100644
--- a/src/components/update_notification/update_notification.vue
+++ b/src/components/update_notification/update_notification.vue
@@ -1,36 +1,56 @@
 <template>
   <Modal
-    :is-open="true"
+    :is-open="shouldShow"
     class="UpdateNotification"
-    :class="{ peek: modalPeeked }"
     :no-background="true"
   >
-    <div class="UpdateNotificationModal panel">
+    <div
+      class="UpdateNotificationModal panel"
+      :class="{ '-peek': !showingMore }"
+    >
       <div class="panel-heading">
         <span class="title">
           {{ $t('update.big_update_title') }}
         </span>
       </div>
       <div class="panel-body">
-        <p>
-          {{ $t('update.big_update_content') }}
-        </p>
-        <p>
+        <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>
+            <p class="extra-info">
+                {{ $t('update.update_bugs') }}
+            </p>
+            <p class="extra-info">
+                {{ $t('update.update_changelog') }}
+            </p>
+            </div>
+            <div class="spacer-bottom"/>
+        </div>
+      </div>
+      <div class="panel-footer">
+        <button
+          class="button-default"
+          @click.prevent="neverShowAgain"
+          >
+          {{ $t("general.never_show_again") }}
+        </button>
         <button
-          class="button-unstyled -link tall-status-hider"
+          class="button-default"
           @click.prevent="toggleShowMore"
-        >
+          v-if="!showingMore"
+          >
           {{ $t("general.show_more") }}
         </button>
-        {{ ' ' }}
         <button
-          class="button-unstyled -link tall-status-hider"
-          @click.prevent="toggleShowMore"
-        >
-          {{ $t("general.never_show_again") }}
+          class="button-default"
+          @click.prevent="dismiss"
+          >
+          {{ $t("general.dismiss") }}
         </button>
-          </p>
-        <img class="pleroma-tan" :src="pleromaTanVariant"/>
       </div>
     </div>
   </Modal>
-- 
cgit v1.2.3-70-g09d2

