Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/NcActionButton/NcActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@
<span v-else class="action-button__text">{{ text }}</span>

<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->
<ChevronRightIcon v-if="isMenu && !isRTL" :size="20" class="action-button__menu-icon" />
<ChevronLeftIcon v-else-if="isMenu && isRTL" :size="20" class="action-button__menu-icon" />
<ChevronRightIcon v-if="isMenu && !isRtl" :size="20" class="action-button__menu-icon" />
<ChevronLeftIcon v-else-if="isMenu && isRtl" :size="20" class="action-button__menu-icon" />
<CheckIcon v-else-if="isChecked === true" :size="20" class="action-button__pressed-icon" />
<span v-else-if="isChecked === false" class="action-button__pressed-icon material-design-icon" />

Expand All @@ -371,7 +371,7 @@
import ChevronRightIcon from 'vue-material-design-icons/ChevronRight.vue'
import ChevronLeftIcon from 'vue-material-design-icons/ChevronLeft.vue'
import ActionTextMixin from '../../mixins/actionText.js'
import { isRTL } from '@nextcloud/l10n'
import { isRtl } from '../../utils/rtl.ts'

/**
* Button component to be used in Actions
Expand All @@ -386,19 +386,19 @@
},
setup() {
return {
isRTL: isRTL(),
isRtl,
}
},
mixins: [ActionTextMixin],

Check warning on line 392 in src/components/NcActionButton/NcActionButton.vue

View workflow job for this annotation

GitHub Actions / NPM lint

The "mixins" property should be above the "setup" property on line 387

inject: {

Check warning on line 394 in src/components/NcActionButton/NcActionButton.vue

View workflow job for this annotation

GitHub Actions / NPM lint

The "inject" property should be above the "setup" property on line 387
isInSemanticMenu: {
from: 'NcActions:isSemanticMenu',
default: false,
},
},

props: {

Check warning on line 401 in src/components/NcActionButton/NcActionButton.vue

View workflow job for this annotation

GitHub Actions / NPM lint

The "props" property should be above the "setup" property on line 387
/**
* @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.
* @todo Add a check in @nextcloud/vue 9 that this prop is not provided,
Expand Down
6 changes: 3 additions & 3 deletions src/components/NcActionTextEditable/NcActionTextEditable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
<!-- allow the custom font to inject a ::before
not possible on input[type=submit] -->
<label v-show="!disabled" :for="id" class="action-text-editable__label">
<ArrowLeft v-if="isRTL" :size="20" />
<ArrowLeft v-if="isRtl" :size="20" />
<ArrowRight v-else :size="20" />
</label>
</form>
Expand All @@ -98,7 +98,7 @@ import GenRandomId from '../../utils/GenRandomId.js'
import ArrowLeft from 'vue-material-design-icons/ArrowLeft.vue'
import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'

import { isRTL } from '@nextcloud/l10n'
import { isRtl } from '../../utils/rtl.ts'

export default {
name: 'NcActionTextEditable',
Expand Down Expand Up @@ -170,7 +170,7 @@ export default {
const model = useModelMigration('value', 'update:value')
return {
model,
isRTL: isRTL(),
isRtl,
}
},

Expand Down
6 changes: 3 additions & 3 deletions src/components/NcAppContent/NcAppContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The list size must be between the min and the max width value.
:class="{ 'splitpanes--horizontal': layout === 'horizontal-split',
'splitpanes--vertical': layout === 'vertical-split'
}"
:rtl="isRTL"
:rtl="isRtl"
@resized="handlePaneResize">
<Pane class="splitpanes__pane-list"
:size="listPaneSize || paneDefaults.list.size"
Expand Down Expand Up @@ -112,7 +112,7 @@ import { Splitpanes, Pane } from 'splitpanes'

import 'splitpanes/dist/splitpanes.css'
import { emit } from '@nextcloud/event-bus'
import { isRTL } from '@nextcloud/l10n'
import { isRtl } from '../../utils/rtl.ts'

const browserStorage = getBuilder('nextcloud').persist().build()

Expand Down Expand Up @@ -227,7 +227,7 @@ export default {
setup() {
return {
isMobile: useIsMobile(),
isRTL: isRTL(),
isRtl,
}
},

Expand Down
6 changes: 3 additions & 3 deletions src/components/NcAppContent/NcAppDetailsToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class="app-details-toggle"
:class="{ 'app-details-toggle--mobile': isMobile }">
<template #icon>
<ArrowLeft v-if="isRTL" :size="20" />
<ArrowLeft v-if="isRtl" :size="20" />
<ArrowRight v-else :size="20" />
</template>
</NcButton>
Expand All @@ -27,7 +27,7 @@ import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'
import ArrowLeft from 'vue-material-design-icons/ArrowLeft.vue'

import { useIsMobile } from '../../composables/useIsMobile/index.js'
import { isRTL } from '@nextcloud/l10n'
import { isRtl } from '../../utils/rtl.ts'

export default {
name: 'NcAppDetailsToggle',
Expand All @@ -43,7 +43,7 @@ export default {
},
setup() {
return {
isRTL: isRTL(),
isRtl,
isMobile: useIsMobile(),
}
},
Expand Down
8 changes: 8 additions & 0 deletions src/utils/rtl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { isRTL } from '@nextcloud/l10n'

export const isRtl = isRTL()
Loading