From 9686e2a10361a2a8a73a99b93aaba90cf0ccea50 Mon Sep 17 00:00:00 2001 From: SebinSong Date: Tue, 24 Dec 2024 07:44:01 +0900 Subject: [PATCH 1/2] add the prompt dialog --- .../views/containers/user-settings/UserProfile.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/views/containers/user-settings/UserProfile.vue b/frontend/views/containers/user-settings/UserProfile.vue index e103cbc12..a2b7199a9 100644 --- a/frontend/views/containers/user-settings/UserProfile.vue +++ b/frontend/views/containers/user-settings/UserProfile.vue @@ -82,6 +82,7 @@ tag='button' type='submit' data-test='deleteAccount' + @click='handleDeleteAccount' ) Delete account @@ -96,7 +97,7 @@ import BannerScoped from '@components/banners/BannerScoped.vue' import AvatarUpload from '@components/AvatarUpload.vue' import ButtonSubmit from '@components/ButtonSubmit.vue' import CharLengthIndicator from '@components/CharLengthIndicator.vue' -import { L } from '@common/common.js' +import { L, LTags } from '@common/common.js' import { IDENTITY_BIO_MAX_CHARS, IDENTITY_USERNAME_MAX_CHARS } from '@model/contracts/shared/constants.js' export default ({ name: 'UserProfile', @@ -176,6 +177,13 @@ export default ({ this.$refs.formMsg.danger(e.message) } } + }, + handleDeleteAccount () { + sbp('gi.ui/prompt', { + heading: L('Coming soon!'), + question: L('Sorry, this feature has not been implemented yet.{br_}Please check back later.', LTags()), + primaryButton: L('Close') + }) } } }: Object) From b39ff3123da00a74cdcf88b1fc02d7296816228a Mon Sep 17 00:00:00 2001 From: SebinSong Date: Tue, 24 Dec 2024 10:21:27 +0900 Subject: [PATCH 2/2] fix the heisen-bug in group-contribution test --- test/cypress/integration/group-contributions.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cypress/integration/group-contributions.spec.js b/test/cypress/integration/group-contributions.spec.js index 655b2ae68..214e22c8d 100644 --- a/test/cypress/integration/group-contributions.spec.js +++ b/test/cypress/integration/group-contributions.spec.js @@ -371,7 +371,8 @@ describe('Contributions', () => { it('user1 edits the non monetary contribution', () => { cy.getByDT('buttonEditNonMonetaryContribution').click() - cy.getByDT('inputNonMonetaryContribution').type('{selectall}{del}French classes{enter}') + cy.getByDT('inputNonMonetaryContribution').clear() + cy.getByDT('inputNonMonetaryContribution').type('French classes{enter}') assertNonMonetaryEditableValue('French classes') cy.getByDT('givingList', 'ul')