From 34006a25e28579a79aca5d57bf75a699a94e8b5c Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Thu, 9 Jan 2020 13:25:12 +0530 Subject: [PATCH] rename primary to filled --- .../CategoriesSelect/CategoriesSelect.vue | 2 +- webapp/components/CommentForm/CommentForm.vue | 2 +- .../ContributionForm/ContributionForm.vue | 4 ++-- webapp/components/DonationInfo/DonationInfo.vue | 2 +- webapp/components/EnterNonce/EnterNonce.vue | 2 +- .../FilterPosts/CategoriesFilterMenuItems.vue | 4 ++-- webapp/components/FilterPosts/FilterPosts.spec.js | 14 +++++++------- webapp/components/FilterPosts/FilterPosts.vue | 2 +- .../FilterPosts/GeneralFilterMenuItems.vue | 2 +- .../FilterPosts/LanguageFilterMenuItems.vue | 4 ++-- webapp/components/FollowButton.vue | 2 +- webapp/components/LoginForm/LoginForm.vue | 2 +- webapp/components/Password/Change.vue | 2 +- webapp/components/PasswordReset/ChangePassword.vue | 2 +- webapp/components/PasswordReset/Request.vue | 2 +- .../components/Registration/CreateUserAccount.vue | 2 +- webapp/components/Registration/Signup.vue | 2 +- webapp/components/ShoutButton.vue | 2 +- webapp/components/TeaserImage/TeaserImage.vue | 2 +- webapp/pages/admin/donations.vue | 2 +- webapp/pages/admin/users.vue | 2 +- webapp/pages/index.vue | 4 ++-- webapp/pages/profile/_id/_slug.vue | 2 +- webapp/pages/settings/embeds.vue | 4 ++-- webapp/pages/settings/index.vue | 2 +- .../settings/my-email-address/enter-nonce.vue | 2 +- webapp/pages/settings/my-email-address/index.vue | 2 +- webapp/pages/settings/my-social-media.vue | 2 +- webapp/pages/settings/privacy.vue | 2 +- webapp/pages/terms-and-conditions-confirm.vue | 2 +- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/webapp/components/CategoriesSelect/CategoriesSelect.vue b/webapp/components/CategoriesSelect/CategoriesSelect.vue index 9ec8688c4..3e240e435 100644 --- a/webapp/components/CategoriesSelect/CategoriesSelect.vue +++ b/webapp/components/CategoriesSelect/CategoriesSelect.vue @@ -6,7 +6,7 @@ {{ $t('actions.cancel') }} - + {{ $t('post.comment.submit') }} diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 281f40fd5..97fc46e0d 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -82,10 +82,10 @@
- + {{ $t('actions.cancel') }} - + {{ $t('actions.save') }}
diff --git a/webapp/components/DonationInfo/DonationInfo.vue b/webapp/components/DonationInfo/DonationInfo.vue index 1bf331b10..e138bef97 100644 --- a/webapp/components/DonationInfo/DonationInfo.vue +++ b/webapp/components/DonationInfo/DonationInfo.vue @@ -2,7 +2,7 @@ diff --git a/webapp/components/EnterNonce/EnterNonce.vue b/webapp/components/EnterNonce/EnterNonce.vue index b44201a42..eb44c3235 100644 --- a/webapp/components/EnterNonce/EnterNonce.vue +++ b/webapp/components/EnterNonce/EnterNonce.vue @@ -17,7 +17,7 @@ {{ $t('components.enter-nonce.form.description') }} - + {{ $t('components.enter-nonce.form.next') }} diff --git a/webapp/components/FilterPosts/CategoriesFilterMenuItems.vue b/webapp/components/FilterPosts/CategoriesFilterMenuItems.vue index 6d91098ad..9189f417d 100644 --- a/webapp/components/FilterPosts/CategoriesFilterMenuItems.vue +++ b/webapp/components/FilterPosts/CategoriesFilterMenuItems.vue @@ -16,7 +16,7 @@ circle icon="check" @click="resetCategories" - :primary="!filteredCategoryIds.length" + :filled="!filteredCategoryIds.length" /> @@ -41,7 +41,7 @@ diff --git a/webapp/components/FilterPosts/FilterPosts.spec.js b/webapp/components/FilterPosts/FilterPosts.spec.js index b864a8a46..c05a3d85f 100644 --- a/webapp/components/FilterPosts/FilterPosts.spec.js +++ b/webapp/components/FilterPosts/FilterPosts.spec.js @@ -92,7 +92,7 @@ describe('FilterPosts.vue', () => { it('starts with all categories button active', () => { const wrapper = openFilterPosts() allCategoriesButton = wrapper.findAll('button').at(1) - expect(allCategoriesButton.attributes().class).toContain('--primary') + expect(allCategoriesButton.attributes().class).toContain('--filled') }) it('calls TOGGLE_CATEGORY when clicked', () => { @@ -111,27 +111,27 @@ describe('FilterPosts.vue', () => { expect(mutations['posts/TOGGLE_LANGUAGE']).toHaveBeenCalledWith({}, 'en') }) - it('sets category button attribute `primary` when corresponding category is filtered', () => { + it('sets category button attribute `filled` when corresponding category is filtered', () => { getters['posts/filteredCategoryIds'] = jest.fn(() => ['cat9']) const wrapper = openFilterPosts() democracyAndPoliticsButton = wrapper.findAll('button').at(4) - expect(democracyAndPoliticsButton.attributes().class).toContain('--primary') + expect(democracyAndPoliticsButton.attributes().class).toContain('--filled') }) - it('sets language button attribute `primary` when corresponding language is filtered', () => { + it('sets language button attribute `filled` when corresponding language is filtered', () => { getters['posts/filteredLanguageCodes'] = jest.fn(() => ['es']) const wrapper = openFilterPosts() spanishButton = wrapper .findAll('button.language-buttons') .at(languages.findIndex(l => l.code === 'es')) - expect(spanishButton.attributes().class).toContain('--primary') + expect(spanishButton.attributes().class).toContain('--filled') }) - it('sets "filter-by-followed-authors-only" button attribute `primary`', () => { + it('sets "filter-by-followed-authors-only" button attribute `filled`', () => { getters['posts/filteredByUsersFollowed'] = jest.fn(() => true) const wrapper = openFilterPosts() expect( - wrapper.find('.base-button[name="filter-by-followed-authors-only"]').classes('--primary'), + wrapper.find('.base-button[name="filter-by-followed-authors-only"]').classes('--filled'), ).toBe(true) }) diff --git a/webapp/components/FilterPosts/FilterPosts.vue b/webapp/components/FilterPosts/FilterPosts.vue index 281b46413..787751004 100644 --- a/webapp/components/FilterPosts/FilterPosts.vue +++ b/webapp/components/FilterPosts/FilterPosts.vue @@ -3,7 +3,7 @@ @@ -36,7 +36,7 @@ {{ language.code.toUpperCase() }} diff --git a/webapp/components/FollowButton.vue b/webapp/components/FollowButton.vue index 14d98ef48..31856e6b4 100644 --- a/webapp/components/FollowButton.vue +++ b/webapp/components/FollowButton.vue @@ -4,7 +4,7 @@ :disabled="disabled || !followId" :loading="loading" :icon="icon" - :primary="isFollowed && !hovered" + :filled="isFollowed && !hovered" :danger="isFollowed && hovered" @mouseenter.native="onHover" @mouseleave.native="hovered = false" diff --git a/webapp/components/LoginForm/LoginForm.vue b/webapp/components/LoginForm/LoginForm.vue index e1eb0c693..c140edb47 100644 --- a/webapp/components/LoginForm/LoginForm.vue +++ b/webapp/components/LoginForm/LoginForm.vue @@ -50,7 +50,7 @@ {{ $t('login.forgotPassword') }} - + {{ $t('login.login') }} diff --git a/webapp/components/Password/Change.vue b/webapp/components/Password/Change.vue index 1ce61dcf7..547aab6a1 100644 --- a/webapp/components/Password/Change.vue +++ b/webapp/components/Password/Change.vue @@ -24,7 +24,7 @@ /> - + {{ $t('settings.security.change-password.button') }} diff --git a/webapp/components/PasswordReset/ChangePassword.vue b/webapp/components/PasswordReset/ChangePassword.vue index 5661827fa..ab3334c6d 100644 --- a/webapp/components/PasswordReset/ChangePassword.vue +++ b/webapp/components/PasswordReset/ChangePassword.vue @@ -24,7 +24,7 @@ /> - + {{ $t('settings.security.change-password.button') }} diff --git a/webapp/components/PasswordReset/Request.vue b/webapp/components/PasswordReset/Request.vue index e5c4aabac..5f4baf357 100644 --- a/webapp/components/PasswordReset/Request.vue +++ b/webapp/components/PasswordReset/Request.vue @@ -23,7 +23,7 @@ {{ $t('actions.save') }} diff --git a/webapp/components/Registration/Signup.vue b/webapp/components/Registration/Signup.vue index 67cd09f92..8a9447a69 100644 --- a/webapp/components/Registration/Signup.vue +++ b/webapp/components/Registration/Signup.vue @@ -33,7 +33,7 @@
- + {{ $t('contribution.teaserImage.cropperConfirm') }} - + {{ $t('actions.save') }} diff --git a/webapp/pages/admin/users.vue b/webapp/pages/admin/users.vue index 8b8f4ef31..e56be70ab 100644 --- a/webapp/pages/admin/users.vue +++ b/webapp/pages/admin/users.vue @@ -12,7 +12,7 @@ /> - + diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index f9223a01b..58de701cf 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -8,7 +8,7 @@
@@ -49,7 +49,7 @@ }" class="post-add-button" icon="plus" - primary + filled circle /> diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue index 5a504fdcc..1e2ad3834 100644 --- a/webapp/pages/profile/_id/_slug.vue +++ b/webapp/pages/profile/_id/_slug.vue @@ -227,7 +227,7 @@ class="profile-post-add-button" icon="plus" circle - primary + filled /> diff --git a/webapp/pages/settings/embeds.vue b/webapp/pages/settings/embeds.vue index b417dc017..22050c636 100644 --- a/webapp/pages/settings/embeds.vue +++ b/webapp/pages/settings/embeds.vue @@ -16,10 +16,10 @@ {{ $t('settings.embeds.status.change.question') }} - + {{ $t('settings.embeds.status.change.deny') }} - + {{ $t('settings.embeds.status.change.allow') }} diff --git a/webapp/pages/settings/index.vue b/webapp/pages/settings/index.vue index 0f641c6f9..20034d5af 100644 --- a/webapp/pages/settings/index.vue +++ b/webapp/pages/settings/index.vue @@ -31,7 +31,7 @@ :placeholder="$t('settings.data.labelBio')" /> diff --git a/webapp/pages/settings/my-email-address/enter-nonce.vue b/webapp/pages/settings/my-email-address/enter-nonce.vue index b9fd1a291..91b2e269f 100644 --- a/webapp/pages/settings/my-email-address/enter-nonce.vue +++ b/webapp/pages/settings/my-email-address/enter-nonce.vue @@ -17,7 +17,7 @@ /> diff --git a/webapp/pages/settings/my-email-address/index.vue b/webapp/pages/settings/my-email-address/index.vue index 58cdc7124..4e01bbb44 100644 --- a/webapp/pages/settings/my-email-address/index.vue +++ b/webapp/pages/settings/my-email-address/index.vue @@ -19,7 +19,7 @@ {{ backendErrors.message }} - + {{ $t('actions.save') }} diff --git a/webapp/pages/settings/my-social-media.vue b/webapp/pages/settings/my-social-media.vue index d89896cb8..5f489c303 100644 --- a/webapp/pages/settings/my-social-media.vue +++ b/webapp/pages/settings/my-social-media.vue @@ -54,7 +54,7 @@ :placeholder="$t('settings.social-media.placeholder')" /> - + {{ editingLink.id ? $t('actions.save') : $t('settings.social-media.submit') }} diff --git a/webapp/pages/settings/privacy.vue b/webapp/pages/settings/privacy.vue index e1d440b05..f759926b7 100644 --- a/webapp/pages/settings/privacy.vue +++ b/webapp/pages/settings/privacy.vue @@ -4,7 +4,7 @@ - {{ $t('actions.save') }} + {{ $t('actions.save') }} diff --git a/webapp/pages/terms-and-conditions-confirm.vue b/webapp/pages/terms-and-conditions-confirm.vue index 38fadbdf8..0716048b5 100644 --- a/webapp/pages/terms-and-conditions-confirm.vue +++ b/webapp/pages/terms-and-conditions-confirm.vue @@ -17,7 +17,7 @@