From 625a76a51d603a13ba6be7b21582cd881e580920 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Jul 2023 22:38:16 -0600 Subject: [PATCH] Update AccountImport, add select first 100 posts button --- resources/assets/components/AccountImport.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/resources/assets/components/AccountImport.vue b/resources/assets/components/AccountImport.vue index c7df9f1f8..b669345db 100644 --- a/resources/assets/components/AccountImport.vue +++ b/resources/assets/components/AccountImport.vue @@ -105,6 +105,9 @@

Tap on posts to include them in your import.

{{ selectedPostsCounter }} posts selected for import

+ + +
@@ -590,6 +593,19 @@ window.location.href = '/site/contact' } }); + }, + + handleSelectAll() { + let medias = this.postMeta.slice(0, 100); + for (var i = medias.length - 1; i >= 0; i--) { + let m = medias[i]; + this.toggleSelectedPost(m); + } + }, + + handleClearAll() { + this.selectedMedia = [] + this.selectedPostsCounter = 0; } } }