Skip to content

Commit

Permalink
add the prompt dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Dec 23, 2024
1 parent aaaae1f commit 9686e2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/views/containers/user-settings/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
tag='button'
type='submit'
data-test='deleteAccount'
@click='handleDeleteAccount'
) Delete account
</template>

Expand All @@ -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',
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9686e2a

Please sign in to comment.