fix(l10n): use direct imports of translate functions
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Родитель
f33b94912e
Коммит
6df259c8c9
|
@ -65,6 +65,7 @@
|
|||
</ul>
|
||||
</template>
|
||||
<script>
|
||||
import { t } from '@nextcloud/l10n'
|
||||
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
|
||||
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
|
||||
import debounce from 'lodash-es/debounce.js'
|
||||
|
@ -213,6 +214,7 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
t,
|
||||
select(selectedOption, id) {
|
||||
if (selectedOption.method === METHOD_CREATE_COLLECTION) {
|
||||
selectedOption.action().then((id) => {
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { t } from '@nextcloud/l10n'
|
||||
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
|
||||
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
|
||||
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
|
||||
|
@ -123,6 +124,7 @@ export default {
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
t,
|
||||
toggleDetails() {
|
||||
this.detailsOpen = !this.detailsOpen
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче