Browse Source

feat: add link to admin area on welcome page (#4035)

* feat: Add link to admin area on welcome page

See: #1259

* fix: remove trailing slash from welcome admin button

* fix: welcome page admin button link

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Tomas McNamer 3 năm trước cách đây
mục cha
commit
fc6e4ab9c4
1 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 8 3
      client/components/welcome.vue

+ 8 - 3
client/components/welcome.vue

@@ -5,9 +5,14 @@
         img.animated.fadeIn(src='/_assets/svg/logo-wikijs.svg', alt='Wiki.js')
         .headline.animated.fadeInUp {{ $t('welcome.title') }}
         .subtitle-1.mt-3.animated.fadeInUp.wait-p1s {{ $t('welcome.subtitle') }}
-        v-btn.mt-5.animated.fadeInUp.wait-p2s(color='primary', :href='`/e/` + locale + `/home`', x-large)
-          v-icon(left) mdi-plus
-          span {{ $t('welcome.createhome') }}
+        div
+          v-btn.mt-5.mx-3.animated.fadeInUp.wait-p2s(color='primary', :href='`/e/` + locale + `/home`', x-large)
+            v-icon(left) mdi-plus
+            span {{ $t('welcome.createhome') }}
+          v-btn.mt-5.mx-3.animated.fadeInUp.wait-p3s(color='primary', href='/a', x-large)
+            v-icon(left) mdi-view-dashboard
+            span {{ $t('welcome.goadmin') }}
+
 </template>
 
 <script>