refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,66 @@
<style scoped>
.fa {
top: 1px;
color: #b1b1b1;
}
</style>
<template>
<div>
<notifications group="archive" position="bottom right" :duration="5000" width="400" />
<a class="pointer" :title="$t('people.contact_archive_help')" href="" @click.prevent="toggle">
{{ isActive ? $t('people.contact_archive') : $t('people.contact_unarchive') }}
</a>
<span v-tooltip.top="$t('people.contact_archive_help')">
<em class="fa fa-info-circle relative pointer"></em>
</span>
</div>
</template>
<script>
export default {
props: {
hash: {
type: String,
default: '',
},
active: {
type: Boolean,
default: true,
},
},
data() {
return {
isActive: false,
};
},
mounted() {
this.prepareComponent();
},
methods: {
prepareComponent() {
this.isActive = this.active;
},
toggle() {
axios.put('people/' + this.hash + '/archive')
.then(response => {
this.isActive = response.data.is_active;
this.$notify({
group: 'archive',
title: this.$t('app.default_save_success'),
text: '',
type: 'success'
});
});
},
}
};
</script>