localized message

This commit is contained in:
Moriz Wahl 2023-01-20 10:42:16 +01:00
parent a1b1142128
commit 3b9a553513
2 changed files with 252 additions and 254 deletions

View File

@ -249,9 +249,7 @@ describe('Community', () => {
}) })
it('toasts an info', () => { it('toasts an info', () => {
expect(toastInfoSpy).toBeCalledWith( expect(toastInfoSpy).toBeCalledWith('contribution.alert.answerQuestionToast')
'contribution.alert.answerQuestionToast',
)
}) })
}) })

View File

@ -48,13 +48,13 @@
</div> </div>
</template> </template>
<script> <script>
import OpenCreationsAmount from '@/components/Contributions/OpenCreationsAmount.vue' import OpenCreationsAmount from '@/components/Contributions/OpenCreationsAmount.vue'
import ContributionForm from '@/components/Contributions/ContributionForm.vue' import ContributionForm from '@/components/Contributions/ContributionForm.vue'
import ContributionList from '@/components/Contributions/ContributionList.vue' import ContributionList from '@/components/Contributions/ContributionList.vue'
import { createContribution, updateContribution, deleteContribution } from '@/graphql/mutations' import { createContribution, updateContribution, deleteContribution } from '@/graphql/mutations'
import { listContributions, listAllContributions, openCreations } from '@/graphql/queries' import { listContributions, listAllContributions, openCreations } from '@/graphql/queries'
export default { export default {
name: 'Community', name: 'Community',
components: { components: {
ContributionForm, ContributionForm,
@ -299,7 +299,7 @@
this.tabIndex = 1 this.tabIndex = 1
this.$router.push({ path: '/community#my' }) this.$router.push({ path: '/community#my' })
}, },
} }
</script> </script>
<style scoped> <style scoped>
.tab-content { .tab-content {