diff --git a/client/components/admin/admin-utilities-content.vue b/client/components/admin/admin-utilities-content.vue index e5003fba..ac2b64ca 100644 --- a/client/components/admin/admin-utilities-content.vue +++ b/client/components/admin/admin-utilities-content.vue @@ -8,7 +8,9 @@ v-btn(outlined, color='primary', @click='rebuildTree', :disabled='loading').ml-0.mt-3 v-icon(left) mdi-gesture-double-tap span Proceed + v-divider.my-5 + .subtitle-1.pb-3.primary--text Rerender All Pages .body-2 All pages will be rendered again. Useful if internal links are broken or the rendering pipeline has changed. v-btn(outlined, color='primary', @click='rerenderPages', :disabled='loading', :loading='isRerendering').ml-0.mt-3 @@ -37,7 +39,9 @@ rounded :buffer-value='0' ) + v-divider.my-5 + .subtitle-1.pb-3.pl-0.primary--text Migrate all pages to target locale .body-2 If you created content before selecting a different locale and activating the namespacing capabilities, you may want to transfer all content to the base locale. .body-2.red--text: strong This operation is destructive and cannot be reversed! Make sure you have proper backups! @@ -65,6 +69,25 @@ v-btn(outlined, color='primary', @click='migrateToLocale', :disabled='loading').ml-0.mt-3 v-icon(left) mdi-gesture-double-tap span Proceed + + v-divider.my-5 + + .subtitle-1.pb-3.pl-0.primary--text Purge Page History + .body-2 You may want to purge old history for pages to reduce database usage. + .body-2 This operation only affects the database and not any history saved by a storage module (e.g. git version history) + v-toolbar.radius-7.mt-5(flat, :color='$vuetify.theme.dark ? `grey darken-3-d5` : `grey lighten-4`', height='80') + v-select( + label='Delete history older than...' + outlined + hide-details + :items='purgeHistoryOptions' + item-text='title' + item-value='key' + v-model='purgeHistorySelection' + ) + v-btn(outlined, color='primary', @click='purgeHistory', :disabled='loading').ml-0.mt-3 + v-icon(left) mdi-gesture-double-tap + span Proceed