diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index ef6a094fd7..3a00c28ddb 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -769,6 +769,7 @@ sent: "送信" received: "受信" searchResult: "検索結果" hashtags: "ハッシュタグ" +troubleshooting: "トラブルシューティング" _docs: continueReading: "続きを読む" diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue index c92f30db97..8a83943825 100644 --- a/src/client/components/ui/button.vue +++ b/src/client/components/ui/button.vue @@ -1,6 +1,6 @@ @@ -19,6 +19,11 @@ export default defineComponent({ components: { MkButton, }, + props: { + error: { + required: false, + } + }, data() { return { [symbols.PAGE_INFO]: { @@ -32,10 +37,11 @@ export default defineComponent({ diff --git a/src/client/pages/my-antennas/create.vue b/src/client/pages/my-antennas/create.vue new file mode 100644 index 0000000000..d4762411e7 --- /dev/null +++ b/src/client/pages/my-antennas/create.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/client/pages/my-antennas/edit.vue b/src/client/pages/my-antennas/edit.vue new file mode 100644 index 0000000000..9deafb4235 --- /dev/null +++ b/src/client/pages/my-antennas/edit.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/client/pages/my-antennas/index.antenna.vue b/src/client/pages/my-antennas/editor.vue similarity index 92% rename from src/client/pages/my-antennas/index.antenna.vue rename to src/client/pages/my-antennas/editor.vue index 3a74a9d7f1..882d48e643 100644 --- a/src/client/pages/my-antennas/index.antenna.vue +++ b/src/client/pages/my-antennas/editor.vue @@ -1,8 +1,7 @@ @@ -117,7 +116,7 @@ export default defineComponent({ methods: { async saveAntenna() { if (this.antenna.id == null) { - await os.api('antennas/create', { + await os.apiWithDialog('antennas/create', { name: this.name, src: this.src, userListId: this.userListId, @@ -132,7 +131,7 @@ export default defineComponent({ }); this.$emit('created'); } else { - await os.api('antennas/update', { + await os.apiWithDialog('antennas/update', { antennaId: this.antenna.id, name: this.name, src: this.src, @@ -146,9 +145,8 @@ export default defineComponent({ keywords: this.keywords.trim().split('\n').map(x => x.trim().split(' ')), excludeKeywords: this.excludeKeywords.trim().split('\n').map(x => x.trim().split(' ')), }); + this.$emit('updated'); } - - os.success(); }, async deleteAntenna() { @@ -180,9 +178,13 @@ export default defineComponent({ diff --git a/src/client/pages/my-antennas/index.vue b/src/client/pages/my-antennas/index.vue index 57c55cefdd..c27bb2c15e 100644 --- a/src/client/pages/my-antennas/index.vue +++ b/src/client/pages/my-antennas/index.vue @@ -1,12 +1,12 @@