Skip to content

Commit

Permalink
Merge pull request #1804 from nextcloud/fix/1776/bump-nextcloud-vue
Browse files Browse the repository at this point in the history
Update nextcloud/vue, cleanup hacks
  • Loading branch information
raimund-schluessler authored Sep 29, 2021
2 parents 6811c50 + 45d5bfc commit c5212c9
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 23 deletions.
47 changes: 38 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@nextcloud/logger": "^2.0.0",
"@nextcloud/moment": "^1.1.1",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue": "^4.1.1",
"@nextcloud/vue": "^4.2.0",
"@nextcloud/vue-dashboard": "^2.0.1",
"@vue/test-utils": "^1.2.1",
"cdav-library": "github:nextcloud/cdav-library",
Expand Down
7 changes: 5 additions & 2 deletions src/components/AppNavigation/AppNavigationSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,13 @@ export default {
calendars: 'getSortedWritableCalendars',
}),
},
methods:
mapActions([
methods: {
t,
...mapActions([
'setVisibility',
]),
},
}
</script>

Expand Down
2 changes: 2 additions & 0 deletions src/components/AppNavigation/CalendarSharee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export default {
},
},
methods: {
t,
async deleteSharee() {
if (this.loading) {
return false
Expand Down
5 changes: 4 additions & 1 deletion src/components/AppNavigation/Trashbin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ import { uidToHexColor } from '../../utils/color'
import logger from '../../utils/logger'
import { showError } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import moment from '@nextcloud/moment'
import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import Actions from '@nextcloud/vue/dist/Components/Actions'
Expand Down Expand Up @@ -187,6 +187,9 @@ export default {
},
},
methods: {
t,
n,
async onShow() {
this.showModal = true
Expand Down
6 changes: 0 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ if (!OCA.Tasks) {
OCA.Tasks = {}
}

Vue.prototype.t = function() {
return t.apply(null, arguments).toString()
}
Vue.prototype.n = function() {
return n.apply(null, arguments).toString()
}
Vue.prototype.$OC = OC
Vue.prototype.$OCA = OCA
Vue.prototype.$appVersion = appVersion
Expand Down
4 changes: 0 additions & 4 deletions src/views/AppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,6 @@ export default {
<style lang="scss" scoped>
$color-error: #e9322d;
#app-settings::v-deep #app-settings-header .settings-button {
padding-left: 50px;
}
.collection::v-deep {
&.collection--edit {
.app-navigation-entry-link {
Expand Down

0 comments on commit c5212c9

Please sign in to comment.