Add a history of posts and pages with restore
This commit is contained in:
1 parent
eb37a7c6fb
commit
6fdb02040b
20 files changed
+482
-8
No files matched your search
@@ -3,6 +3,7 @@ import { boot, useForm } from '../api';
|
||||
import { ref } from 'vue';
|
||||
import Link from '../components/Link.vue';
|
||||
import MediaPicker from '../components/MediaPicker.vue';
|
||||
import RevisionsPanel from '../components/RevisionsPanel.vue';
|
||||
import { t } from '../i18n';
|
||||
import { flash, navigate } from '../state';
|
||||
|
||||
@@ -88,5 +89,6 @@ async function submit(): Promise<void> {
|
||||
</div>
|
||||
<button type="submit" class="m-btn m-btn-primary" :disabled="form.busy">{{ form.busy ? t('Saving…') : t('Save') }}</button>
|
||||
</form>
|
||||
<RevisionsPanel v-if="post && boot.permissions.includes('revisions.view')" type="posts" :id="post.id" />
|
||||
<MediaPicker v-if="picking" @pick="(url) => { form.values.cover_image = url; picking = false; }" @close="picking = false" />
|
||||
</template>
|
||||
Reference in new issue
Block a user