diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-07-25 13:00:18 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-07-25 13:00:18 +0000 |
commit | d3d4a1d968e149182019a064cca0ec45d9134522 (patch) | |
tree | 01021818a5c7dffb2f014696485f3bbaabc2b4e7 /app/assets/javascripts/boards | |
parent | 5ebb3d2b35157b3204780cd5926321e5caa639f4 (diff) | |
download | gitlab-ce-d3d4a1d968e149182019a064cca0ec45d9134522.tar.gz |
Autofix i18n lints for vue files
Autofixes additional linting errors
found in vue files.
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r-- | app/assets/javascripts/boards/components/board_form.vue | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/app/assets/javascripts/boards/components/board_form.vue b/app/assets/javascripts/boards/components/board_form.vue index 6754abf4019..ebf48cee2ae 100644 --- a/app/assets/javascripts/boards/components/board_form.vue +++ b/app/assets/javascripts/boards/components/board_form.vue @@ -1,4 +1,5 @@ <script> +import { __ } from '~/locale'; import Flash from '~/flash'; import DeprecatedModal from '~/vue_shared/components/deprecated_modal.vue'; import { visitUrl } from '~/lib/utils/url_utility'; @@ -86,12 +87,12 @@ export default { }, buttonText() { if (this.isNewForm) { - return 'Create board'; + return __('Create board'); } if (this.isDeleteForm) { - return 'Delete'; + return __('Delete'); } - return 'Save changes'; + return __('Save changes'); }, buttonKind() { if (this.isNewForm) { @@ -104,15 +105,15 @@ export default { }, title() { if (this.isNewForm) { - return 'Create new board'; + return __('Create new board'); } if (this.isDeleteForm) { - return 'Delete board'; + return __('Delete board'); } if (this.readonly) { - return 'Board scope'; + return __('Board scope'); } - return 'Edit board'; + return __('Edit board'); }, readonly() { return !this.canAdminBoard; @@ -138,7 +139,7 @@ export default { visitUrl(boardsStore.rootPath); }) .catch(() => { - Flash('Failed to delete board. Please try again.'); + Flash(__('Failed to delete board. Please try again.')); this.isLoading = false; }); } else { @@ -149,7 +150,7 @@ export default { visitUrl(data.board_path); }) .catch(() => { - Flash('Unable to save your changes. Please try again.'); + Flash(__('Unable to save your changes. Please try again.')); this.isLoading = false; }); } @@ -182,17 +183,19 @@ export default { @submit="submit" > <template slot="body"> - <p v-if="isDeleteForm">Are you sure you want to delete this board?</p> + <p v-if="isDeleteForm">{{ __('Are you sure you want to delete this board?') }}</p> <form v-else class="js-board-config-modal" @submit.prevent> <div v-if="!readonly" class="append-bottom-20"> - <label class="form-section-title label-bold" for="board-new-name"> Board name </label> + <label class="form-section-title label-bold" for="board-new-name">{{ + __('Board name') + }}</label> <input id="board-new-name" ref="name" v-model="board.name" class="form-control" type="text" - placeholder="Enter board name" + :placeholder="__('Enter board name')" @keyup.enter="submit" /> </div> |