From 1ebe57b11466a7136d0a0dee6aa7bdb5230ec147 Mon Sep 17 00:00:00 2001 From: Carl Vuorinen Date: Sat, 9 May 2020 23:02:20 +0300 Subject: [PATCH] Make contributor achievement notification "sticky" (#12183) Add ability to define any notification to be "sticky", so that it will not timeout and stays on screen until clicked. --- website/client/src/components/notifications.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/client/src/components/notifications.vue b/website/client/src/components/notifications.vue index 840fa58280..3c8111b5ee 100644 --- a/website/client/src/components/notifications.vue +++ b/website/client/src/components/notifications.vue @@ -170,6 +170,7 @@ const NOTIFICATIONS = { achievement: true, label: $t => $t('modalContribAchievement'), modalId: 'contributor', + sticky: true, }, ACHIEVEMENT_ALL_YOUR_BASE: { achievement: true, @@ -552,7 +553,7 @@ export default { this.text(config.label(this.$t), () => { this.notificationData = data; this.$root.$emit('bv::show::modal', config.modalId); - }, true, 10000); + }, !config.sticky, 10000); } }, debounceCheckUserAchievements: debounce(function debounceCheck () {