Skip to content

Commit

Permalink
Merge pull request #5878 from ProcessMaker/feature/FOUR-12253
Browse files Browse the repository at this point in the history
Feature/FOUR-12253: Add Metric defined in Launchpad Setting - Chart.
  • Loading branch information
ryancooley authored Jan 5, 2024
2 parents a8b2976 + b569332 commit 62018ce
Show file tree
Hide file tree
Showing 15 changed files with 1,840 additions and 19 deletions.
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"tooltip.js": "^1.3.3",
"v-tooltip": "^2.0.3",
"vue": "^2.6.14",
"vue-chartjs": "^3.5.0",
"vue-color": "^2.7.1",
"vue-cookies": "^1.8.2",
"vue-croppie": "1.3.12",
Expand Down
41 changes: 24 additions & 17 deletions resources/js/components/shared/EllipsisMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,25 @@
/>
</b-input-group>
</div>
<div v-for="action in filterActions">
<b-dropdown-divider v-if="action.value == 'divider'"/>
<b-dropdown-item
v-else
:key="action.value"
:href="action.link ? itemLink(action, data) : null"
class="ellipsis-dropdown-item mx-auto"
@click="!action.link ? onClick(action, data) : null"
>
<div class="ellipsis-dropdown-content">
<i
class="pr-1 fa-fw"
:class="action.icon"
/>
<span>{{ $t(action.content) }}</span>
</div>
</b-dropdown-item>
<div v-for="action in filterActions" :key="action.value">
<div v-if="action.value !== 'edit-launchpad' || isProcessesCatalogueInUrl()">
<b-dropdown-divider v-if="action.value == 'divider'"/>
<b-dropdown-item
v-else
:key="action.value"
:href="action.link ? itemLink(action, data) : null"
class="ellipsis-dropdown-item mx-auto"
@click="!action.link ? onClick(action, data) : null"
>
<div class="ellipsis-dropdown-content">
<i
class="pr-1 fa-fw"
:class="action.icon"
/>
<span>{{ $t(action.content) }}</span>
</div>
</b-dropdown-item>
</div>
</div>
</div>
</b-dropdown>
Expand Down Expand Up @@ -224,6 +226,11 @@ export default {
}
});
},
isProcessesCatalogueInUrl() {
const currentUrl = window.location.href;
const isInUrl = currentUrl.includes("processes-catalogue");
return isInUrl;
}
},
};
</script>
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/shared/ModalSaveVersion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ export default {
type: "add",
};
ProcessMaker.EventBus.$emit("getLaunchpadImagesEvent", params);
ProcessMaker.EventBus.$emit("getChartId");
this.hideModal();
})
.catch((error) => {
Expand Down
Loading

0 comments on commit 62018ce

Please sign in to comment.