@@ -188,6 +193,14 @@ export default {
this.$store.state.optionsWeb.web.showScriptHeatmap = value
}
},
+ AllHeatmaps: {
+ get () {
+ return this.$store.state.optionsWeb.web.showAllHeatmaps
+ },
+ set (value) {
+ this.$store.state.optionsWeb.web.showAllHeatmaps = value
+ }
+ },
updateCheck: {
get () {
return this.$store.state.optionsWeb.web.updateCheck
diff --git a/ui/src/views/scenes/SceneCard.vue b/ui/src/views/scenes/SceneCard.vue
index bee487a18..2a596fe49 100644
--- a/ui/src/views/scenes/SceneCard.vue
+++ b/ui/src/views/scenes/SceneCard.vue
@@ -41,9 +41,9 @@
{{item.duration}}m
-
-
-
+
+
+
@@ -168,17 +168,21 @@ export default {
getHeatmapURL (fileId) {
return `/api/dms/heatmap/${fileId}`
},
- getFunscript() {
- if (this.item.file !== null) {
- let script;
- if (script = this.item.file.find((a) => a.type === 'script' && a.has_heatmap && a.is_selected_script)) {
- return script
- }
- if (script = this.item.file.find((a) => a.type === 'script' && a.has_heatmap)) {
- return script
+ getFunscripts (showAll) {
+ if (showAll) {
+ return this.item.file !== null && this.item.file.filter(a => a.type === 'script' && a.has_heatmap);
+ } else {
+ if (this.item.file !== null) {
+ let script;
+ if (script = this.item.file.find((a) => a.type === 'script' && a.has_heatmap && a.is_selected_script)) {
+ return [script]
+ }
+ if (script = this.item.file.find((a) => a.type === 'script' && a.has_heatmap)) {
+ return [script]
+ }
}
+ return false;
}
- return false;
}
}
}