From 67d218fe2bd53ff3d70f15045ebb1110d0b8923e Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Apr 2023 09:52:08 +0900 Subject: [PATCH 1/3] tweak MkSignupDialog.rules.vue --- cypress/e2e/basic.cy.js | 2 -- packages/frontend/src/components/MkSignupDialog.rules.vue | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/basic.cy.js b/cypress/e2e/basic.cy.js index b0c3d4c19a..e271894ec1 100644 --- a/cypress/e2e/basic.cy.js +++ b/cypress/e2e/basic.cy.js @@ -53,7 +53,6 @@ describe('After setup instance', () => { cy.get('[data-cy-signup]').click(); cy.get('[data-cy-signup-rules-continue]').should('be.disabled'); - cy.get('[data-cy-signup-rules-notes] [data-cy-folder-header]').click(); cy.get('[data-cy-signup-rules-notes-agree] [data-cy-switch-toggle]').click(); cy.get('[data-cy-signup-rules-continue]').should('not.be.disabled'); cy.get('[data-cy-signup-rules-continue]').click(); @@ -78,7 +77,6 @@ describe('After setup instance', () => { // ユーザー名が重複している場合の挙動確認 cy.get('[data-cy-signup]').click(); cy.get('[data-cy-signup-rules-continue]').should('be.disabled'); - cy.get('[data-cy-signup-rules-notes] [data-cy-folder-header]').click(); cy.get('[data-cy-signup-rules-notes-agree] [data-cy-switch-toggle]').click(); cy.get('[data-cy-signup-rules-continue]').should('not.be.disabled'); cy.get('[data-cy-signup-rules-continue]').click(); diff --git a/packages/frontend/src/components/MkSignupDialog.rules.vue b/packages/frontend/src/components/MkSignupDialog.rules.vue index be1c7f8c35..3b39b72d37 100644 --- a/packages/frontend/src/components/MkSignupDialog.rules.vue +++ b/packages/frontend/src/components/MkSignupDialog.rules.vue @@ -18,7 +18,7 @@ {{ i18n.ts.agree }} - + @@ -27,7 +27,7 @@ {{ i18n.ts.agree }} - + From 7cc797062d970ebe298b9f8d73370fca8d218b6d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Apr 2023 10:11:48 +0900 Subject: [PATCH 2/3] tweak MkSignupDialog.rules.vue --- locales/ja-JP.yml | 1 + .../frontend/src/components/MkSignupDialog.rules.vue | 10 ++++++++-- packages/frontend/src/components/MkSignupDialog.vue | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index cd9521a9f8..8c1334c6a8 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1013,6 +1013,7 @@ horizontal: "横" position: "位置" serverRules: "サーバールール" pleaseConfirmBelowBeforeSignup: "このサーバーに登録する前に、以下を確認してください。" +pleaseAgreeAllToContinue: "続けるには、全ての「同意する」にチェックが入っている必要があります。" continue: "続ける" _serverRules: diff --git a/packages/frontend/src/components/MkSignupDialog.rules.vue b/packages/frontend/src/components/MkSignupDialog.rules.vue index 3b39b72d37..ed179ffdeb 100644 --- a/packages/frontend/src/components/MkSignupDialog.rules.vue +++ b/packages/frontend/src/components/MkSignupDialog.rules.vue @@ -36,7 +36,12 @@ {{ i18n.ts.agree }} - {{ i18n.ts.continue }} +
{{ i18n.ts.pleaseAgreeAllToContinue }}
+ +
+ {{ i18n.ts.cancel }} + {{ i18n.ts.continue }} +
@@ -62,7 +67,8 @@ const agreed = computed(() => { }); const emit = defineEmits<{ - (ev: 'accept'): void; + (ev: 'cancel'): void; + (ev: 'done'): void; }>(); diff --git a/packages/frontend/src/components/MkSignupDialog.vue b/packages/frontend/src/components/MkSignupDialog.vue index b4fc564d36..17f8b86425 100644 --- a/packages/frontend/src/components/MkSignupDialog.vue +++ b/packages/frontend/src/components/MkSignupDialog.vue @@ -17,7 +17,7 @@ :leave-to-class="$style.transition_x_leaveTo" >