+
+ {{ $p.t('search/action_default_label') }}
+
+ `
};
\ No newline at end of file
diff --git a/public/js/components/searchbar/result/template/actions.js b/public/js/components/searchbar/result/template/actions.js
index 726fef4dd..8bfd08420 100644
--- a/public/js/components/searchbar/result/template/actions.js
+++ b/public/js/components/searchbar/result/template/actions.js
@@ -10,11 +10,20 @@ export default {
res: Object,
actions: Array
},
+ methods: {
+ renderif: function(action) {
+ if(action?.renderif === undefined) {
+ return true;
+ }
+
+ return action.renderif(this.res);
+ }
+ },
template: `