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>
|
</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
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче