Skip to content

Commit

Permalink
Merge Toast Notif - Meeds-io/MIPs#99 (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker authored Oct 17, 2023
2 parents 93f0059 + af15475 commit de7ccab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,7 @@ export default {
.then(() => {
document.dispatchEvent(new CustomEvent('alert-message-html-confeti', {detail: {
alertType: 'success',
alertMessage: `
<div class="d-flex flex-nowrap pt-1 justify-center">
${this.$t('challenges.announcementCreateSuccess')}
</div>
`,
alertMessage: this.$t('challenges.announcementCreateSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${this.announcement.activityId}`,
alertLinkText: this.$t('announcement.alert.see'),
alertLinkTarget: '_self',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,7 @@ export default {
if (this.ruleToSave.publish && rule.activityId) {
document.dispatchEvent(new CustomEvent('alert-message-html', {detail: {
alertType: 'success',
alertMessage: `
<div class="d-flex flex-nowrap pt-1 justify-center">
${this.$t('programs.details.ruleUpdateAndPublishSuccess')}
</div>
`,
alertMessage: this.$t('programs.details.ruleUpdateAndPublishSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${rule.activityId}`,
alertLinkText: this.$t('rule.alert.see'),
alertLinkTarget: '_self',
Expand Down Expand Up @@ -659,11 +655,7 @@ export default {
if (this.ruleToSave.publish && this.originalRule.activityId) {
document.dispatchEvent(new CustomEvent('alert-message-html', {detail: {
alertType: 'success',
alertMessage: `
<div class="d-flex flex-nowrap pt-1 justify-center">
${this.$t('programs.details.ruleCreationAndPublishSuccess')}
</div>
`,
alertMessage: this.$t('programs.details.ruleCreationAndPublishSuccess'),
alertLink: `${eXo.env.portal.context}/${eXo.env.portal.portalName}/activity?id=${this.originalRule.activityId}`,
alertLinkText: this.$t('rule.alert.see'),
alertLinkTarget: '_self',
Expand Down

0 comments on commit de7ccab

Please sign in to comment.