refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
20
resources/js/components/people/StayInTouchLabel.vue
Normal file
20
resources/js/components/people/StayInTouchLabel.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
value: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
},
|
||||
|
||||
render(createElement) {
|
||||
const text = this.$tc('people.stay_in_touch_modal_label', this.value, {count: '[slot]'});
|
||||
const texts = _.split(text, '[slot]');
|
||||
return createElement('div', [
|
||||
createElement('span', texts[0]),
|
||||
this.$slots.default,
|
||||
createElement('span', texts[1]),
|
||||
]);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user