Skip to content
Snippets Groups Projects

Work Items - Tasks First Time Experience

Merged Deepika Guliani requested to merge 366687-work-items-tasks-first-time-experience into master
All threads resolved!
Compare and Show latest version
2 files
+ 49
26
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -45,7 +45,7 @@ export default {
return helpPagePath(`ee/development/work_items.html`);
},
showWorkItemInformation() {
return this.workItemAccessCounter > 1;
return this.workItemAccessCounter === 1;
},
informationBody() {
return s__(
@@ -56,6 +56,11 @@ export default {
mounted() {
this.workItemAccessCounter += 1;
},
methods: {
dismissAlert() {
this.showInfo = false;
},
},
WORK_ITEM_VIEWED_STORAGE_KEY,
};
</script>
@@ -67,13 +72,13 @@ export default {
:storage-key="$options.WORK_ITEM_VIEWED_STORAGE_KEY"
/>
<gl-alert
v-if="showWorkItemInformation"
v-if="showWorkItemInformation && showInfo"
variant="info"
:title="$options.i18n.tasksInformationTitle"
:primary-button-link="tasksDocLinkPath"
:primary-button-text="$options.i18n.learnTasksButtonText"
data-testid="work-item-information"
@dismiss="showInfo = false"
@dismiss="dismissAlert"
>
<gl-sprintf :message="informationBody">
<template #workItemsLink>
Loading