summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-04-23 22:35:26 +0900
committerGitHub <noreply@github.com>2019-04-23 22:35:26 +0900
commit0463c6bb0f8fd32740ceb61ccce04c662272a618 (patch)
treea28cbdf6c9cdc14648b8c0e46248665a3ad7e5af /src/client
parentFix #4768 (diff)
downloadmisskey-0463c6bb0f8fd32740ceb61ccce04c662272a618.tar.gz
misskey-0463c6bb0f8fd32740ceb61ccce04c662272a618.tar.bz2
misskey-0463c6bb0f8fd32740ceb61ccce04c662272a618.zip
Refactor API (#4770)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update description.ts * wip
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/user-list-editor.vue4
-rw-r--r--src/client/app/common/views/components/user-lists.vue4
-rw-r--r--src/client/app/desktop/views/home/timeline.vue4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/client/app/common/views/components/user-list-editor.vue b/src/client/app/common/views/components/user-list-editor.vue
index 8d2e04d045..86024c4da3 100644
--- a/src/client/app/common/views/components/user-list-editor.vue
+++ b/src/client/app/common/views/components/user-list-editor.vue
@@ -77,11 +77,11 @@ export default Vue.extend({
input: {
default: this.list.name
}
- }).then(({ canceled, result: title }) => {
+ }).then(({ canceled, result: name }) => {
if (canceled) return;
this.$root.api('users/lists/update', {
listId: this.list.id,
- title: title
+ name: name
});
});
},
diff --git a/src/client/app/common/views/components/user-lists.vue b/src/client/app/common/views/components/user-lists.vue
index 786a6766d3..699251b313 100644
--- a/src/client/app/common/views/components/user-lists.vue
+++ b/src/client/app/common/views/components/user-lists.vue
@@ -28,10 +28,10 @@ export default Vue.extend({
this.$root.dialog({
title: this.$t('list-name'),
input: true
- }).then(async ({ canceled, result: title }) => {
+ }).then(async ({ canceled, result: name }) => {
if (canceled) return;
const list = await this.$root.api('users/lists/create', {
- title
+ name
});
this.lists.push(list)
diff --git a/src/client/app/desktop/views/home/timeline.vue b/src/client/app/desktop/views/home/timeline.vue
index 1e6abac823..3f9681a047 100644
--- a/src/client/app/desktop/views/home/timeline.vue
+++ b/src/client/app/desktop/views/home/timeline.vue
@@ -123,10 +123,10 @@ export default Vue.extend({
this.$root.dialog({
title: this.$t('list-name'),
input: true
- }).then(async ({ canceled, result: title }) => {
+ }).then(async ({ canceled, result: name }) => {
if (canceled) return;
const list = await this.$root.api('users/lists/create', {
- title
+ name
});
this.list = list;