fix(l10n): use direct imports of translate functions

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2024-06-14 17:20:26 +02:00
Родитель f33b94912e
Коммит 6df259c8c9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 6349D071889BD1D5
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -65,6 +65,7 @@
</ul> </ul>
</template> </template>
<script> <script>
import { t } from '@nextcloud/l10n'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js' import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import debounce from 'lodash-es/debounce.js' import debounce from 'lodash-es/debounce.js'
@ -213,6 +214,7 @@ export default {
}, },
methods: { methods: {
t,
select(selectedOption, id) { select(selectedOption, id) {
if (selectedOption.method === METHOD_CREATE_COLLECTION) { if (selectedOption.method === METHOD_CREATE_COLLECTION) {
selectedOption.action().then((id) => { selectedOption.action().then((id) => {

Просмотреть файл

@ -73,6 +73,7 @@
</template> </template>
<script> <script>
import { t } from '@nextcloud/l10n'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
@ -123,6 +124,7 @@ export default {
}, },
}, },
methods: { methods: {
t,
toggleDetails() { toggleDetails() {
this.detailsOpen = !this.detailsOpen this.detailsOpen = !this.detailsOpen
}, },