Skip to content

Commit

Permalink
fix: remove duplicating t method registration
Browse files Browse the repository at this point in the history
It is already added to prototype. Having properties (e.g. computed) for this method in instances throws exception:

> The computed property "t" is already defined as a method.

Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jan 11, 2024
1 parent 95f8f3d commit 592252e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/components/Suggestion/Emoji/EmojiList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
</template>

<script>
import { translate as t } from '@nextcloud/l10n'
import { emojiAddRecent } from '@nextcloud/vue'
export default {
Expand Down Expand Up @@ -82,7 +81,6 @@ export default {
},
},
methods: {
t,
onKeyDown({ event }) {
// Ignore any key modifier combinations
if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey) {
Expand Down
1 change: 0 additions & 1 deletion src/components/Suggestion/SuggestionListWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export default {
},
},
methods: {
t,
onKeyDown({ event }) {
// Ignore any key modifier combinations
if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey) {
Expand Down
1 change: 0 additions & 1 deletion src/nodes/Table/TableCellView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export default {
},
},
computed: {
t: () => window.t,
textAlign() {
return { 'text-align': this.node.attrs.textAlign }
},
Expand Down
1 change: 0 additions & 1 deletion src/nodes/Table/TableHeaderView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export default {
},
},
computed: {
t: () => window.t,
textAlign() {
return { 'text-align': this.node.attrs.textAlign }
},
Expand Down
3 changes: 0 additions & 3 deletions src/nodes/Table/TableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export default {
required: true,
},
},
computed: {
t: () => window.t,
},
}
</script>

Expand Down

0 comments on commit 592252e

Please sign in to comment.