From 143ca8f2ef73cb25857e3a3c98a32e6ef3f4c779 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Fri, 23 Aug 2024 14:36:55 -0700 Subject: [PATCH] Consolidate selection text formatting. Elide folders when 0. Update all usage of selection text to use common source. --- .../QuickEditModal/EditAudienceModal.vue | 10 ++++--- .../QuickEditModal/EditBooleanMapModal.vue | 10 ++++--- .../QuickEditModal/EditCategoriesModal.vue | 5 ++++ .../QuickEditModal/EditLanguageModal.vue | 10 ++++--- .../EditLearningActivitiesModal.vue | 5 ++++ .../QuickEditModal/EditLevelsModal.vue | 7 ++++- .../EditResourcesNeededModal.vue | 5 ++++ .../QuickEditModal/EditSourceModal.vue | 10 ++++--- .../__tests__/EditAudienceModal.spec.js | 1 + .../__tests__/EditBooleanMapModal.spec.js | 3 +- .../__tests__/EditLanguageModal.spec.js | 3 +- .../__tests__/EditSourceModal.spec.js | 1 + .../components/QuickEditModal/index.vue | 28 +++++++++++++++++-- .../frontend/channelEdit/translator.js | 2 ++ .../channelEdit/views/CurrentTopicView.vue | 15 ++-------- .../channelEdit/views/trash/TrashModal.vue | 10 ++++--- .../channelEdit/vuex/contentNode/getters.js | 8 ++++++ 17 files changed, 96 insertions(+), 37 deletions(-) diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/QuickEditModal/EditAudienceModal.vue b/contentcuration/contentcuration/frontend/channelEdit/components/QuickEditModal/EditAudienceModal.vue index e76d4126fb..87a7f368b5 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/components/QuickEditModal/EditAudienceModal.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/components/QuickEditModal/EditAudienceModal.vue @@ -8,8 +8,8 @@ @submit="handleSave" @cancel="close" > -

- {{ $tr('resourcesSelected', { count: nodeIds.length }) }} +

+ {{ resourcesSelectedText }}