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 <me@shgk.me>
  • Loading branch information
ShGKme authored and backportbot-nextcloud[bot] committed Jan 12, 2024
1 parent 2788dfd commit ffd8e44
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/components/Suggestion/SuggestionListWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
</div>
</template>
<script>
import { translate as t } from '@nextcloud/l10n'

export default {
name: 'SuggestionListWrapper',

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 ffd8e44

Please sign in to comment.