- {{ s.shared_by.username }}
+ {{ s.sharedBy.username }}
|
@@ -145,7 +145,7 @@
return
}
- this.linkShareService.getAll({listID: this.listID})
+ this.linkShareService.getAll({listId: this.listID})
.then(r => {
this.linkShares = r
})
@@ -154,7 +154,7 @@
})
},
add() {
- let newLinkShare = new LinkShareModel({right: this.selectedRight, listID: this.listID})
+ let newLinkShare = new LinkShareModel({right: this.selectedRight, listId: this.listID})
this.linkShareService.create(newLinkShare)
.then(() => {
this.selectedRight = rights.READ
@@ -166,7 +166,7 @@
})
},
remove() {
- let linkshare = new LinkShareModel({id: this.linkIDToDelete, listID: this.listID})
+ let linkshare = new LinkShareModel({id: this.linkIDToDelete, listId: this.listID})
this.linkShareService.delete(linkshare)
.then(() => {
this.success({message: 'The link share was successfully deleted'}, this)
diff --git a/src/components/sharing/linkSharingAuth.vue b/src/components/sharing/linkSharingAuth.vue
index da95896e..1a46f07a 100644
--- a/src/components/sharing/linkSharingAuth.vue
+++ b/src/components/sharing/linkSharingAuth.vue
@@ -28,7 +28,7 @@
auth.linkShareAuth(this.$route.params.share)
.then((r) => {
this.loading = false
- router.push({name: 'showList', params: {id: r.list_id}})
+ router.push({name: 'showList', params: {id: r.listId}})
})
.catch(e => {
this.error(e, this)
diff --git a/src/components/sharing/userTeam.vue b/src/components/sharing/userTeam.vue
index 0c0942b4..9a8357d0 100644
--- a/src/components/sharing/userTeam.vue
+++ b/src/components/sharing/userTeam.vue
@@ -175,7 +175,7 @@
if (this.type === 'list') {
this.typeString = `list`
this.stuffService = new UserListService()
- this.stuffModel = new UserListModel({listID: this.id})
+ this.stuffModel = new UserListModel({listId: this.id})
} else if (this.type === 'namespace') {
this.typeString = `namespace`
this.stuffService = new UserNamespaceService()
@@ -192,7 +192,7 @@
if (this.type === 'list') {
this.typeString = `list`
this.stuffService = new TeamListService()
- this.stuffModel = new TeamListModel({listID: this.id})
+ this.stuffModel = new TeamListModel({listId: this.id})
} else if (this.type === 'namespace') {
this.typeString = `namespace`
this.stuffService = new TeamNamespaceService()
@@ -219,17 +219,17 @@
deleteSharable() {
if (this.shareType === 'user') {
- this.stuffModel.userID = this.sharable.username
+ this.stuffModel.userId = this.sharable.username
} else if (this.shareType === 'team') {
- this.stuffModel.teamID = this.sharable.id
+ this.stuffModel.teamId = this.sharable.id
}
this.stuffService.delete(this.stuffModel)
.then(() => {
this.showDeleteModal = false
for (const i in this.sharables) {
if (
- (this.sharables[i].id === this.stuffModel.userID && this.shareType === 'user') ||
- (this.sharables[i].id === this.stuffModel.teamID && this.shareType === 'team')
+ (this.sharables[i].id === this.stuffModel.userId && this.shareType === 'user') ||
+ (this.sharables[i].id === this.stuffModel.teamId && this.shareType === 'team')
) {
this.sharables.splice(i, 1)
}
@@ -250,9 +250,9 @@
}
if (this.shareType === 'user') {
- this.stuffModel.userID = this.sharable.username
+ this.stuffModel.userId = this.sharable.username
} else if (this.shareType === 'team') {
- this.stuffModel.teamID = this.sharable.id
+ this.stuffModel.teamId = this.sharable.id
}
this.stuffService.create(this.stuffModel)
@@ -275,17 +275,17 @@
if (this.shareType === 'user') {
- this.stuffModel.userID = sharable.username
+ this.stuffModel.userId = sharable.username
} else if (this.shareType === 'team') {
- this.stuffModel.teamID = sharable.id
+ this.stuffModel.teamId = sharable.id
}
this.stuffService.update(this.stuffModel)
.then(r => {
for (const i in this.sharables) {
if (
- (this.sharables[i].id === this.stuffModel.userID && this.shareType === 'user') ||
- (this.sharables[i].id === this.stuffModel.teamID && this.shareType === 'team')
+ (this.sharables[i].id === this.stuffModel.userId && this.shareType === 'user') ||
+ (this.sharables[i].id === this.stuffModel.teamId && this.shareType === 'team')
) {
this.$set(this.sharables[i], 'right', r.right)
}
diff --git a/src/components/tasks/ShowListTasks.vue b/src/components/tasks/ShowListTasks.vue
index fdbc4ad6..2f522251 100644
--- a/src/components/tasks/ShowListTasks.vue
+++ b/src/components/tasks/ShowListTasks.vue
@@ -32,7 +32,7 @@
-
+
@@ -59,7 +59,7 @@
-
@@ -159,7 +159,7 @@
}
this.showError = false
- let task = new TaskModel({text: this.newTaskText, listID: this.$route.params.id})
+ let task = new TaskModel({text: this.newTaskText, listId: this.$route.params.id})
this.taskService.create(task)
.then(r => {
this.tasks.push(r)
diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue
index 6cf9a5c7..acae007c 100644
--- a/src/components/tasks/ShowTasks.vue
+++ b/src/components/tasks/ShowTasks.vue
@@ -46,7 +46,7 @@
},
methods: {
loadPendingTasks() {
- let params = {sort_by: ['due_date_unix', 'id'], order_by: ['desc', 'desc']}
+ let params = {sort_by: ['dueDate_unix', 'id'], order_by: ['desc', 'desc']}
if (!this.showAll) {
params.startdate = Math.round(+ this.startDate / 1000)
params.enddate = Math.round(+ this.endDate / 1000)
diff --git a/src/components/tasks/TableView.vue b/src/components/tasks/TableView.vue
index 28c5a5c2..c3b015a9 100644
--- a/src/components/tasks/TableView.vue
+++ b/src/components/tasks/TableView.vue
@@ -55,15 +55,15 @@
Due Date
-
+
|
Start Date
-
+
|
End Date
-
+
|
% Done
diff --git a/src/components/tasks/TaskDetailView.vue b/src/components/tasks/TaskDetailView.vue
index 52f94527..0243d575 100644
--- a/src/components/tasks/TaskDetailView.vue
+++ b/src/components/tasks/TaskDetailView.vue
@@ -28,7 +28,7 @@
@@ -193,8 +193,8 @@
@@ -397,7 +397,7 @@
this.activeFields.repeatAfter = this.task.repeatAfter.amount > 0
this.activeFields.labels = this.task.labels.length > 0
this.activeFields.attachments = this.task.attachments.length > 0
- this.activeFields.relatedTasks = Object.keys(this.task.related_tasks).length > 0
+ this.activeFields.relatedTasks = Object.keys(this.task.relatedTasks).length > 0
},
saveTaskOnChange() {
this.$refs.taskTitle.spellcheck = false
@@ -444,7 +444,7 @@
// FIXME: Throw this away once we have vuex
this.$parent.namespaces.forEach(n => {
n.lists.forEach(l => {
- if (l.id === this.task.listID) {
+ if (l.id === this.task.listId) {
this.list = l
this.namespace = n
return
diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue
index ae9369f1..6f6b7dcc 100644
--- a/src/components/tasks/edit-task.vue
+++ b/src/components/tasks/edit-task.vue
@@ -114,7 +114,7 @@
@@ -128,8 +128,8 @@
| |