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:
23
resources/js/methods.js
vendored
Normal file
23
resources/js/methods.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
export default {
|
||||
/**
|
||||
* Update the default tab view.
|
||||
*
|
||||
* @param {string} view
|
||||
*/
|
||||
updateDefaultProfileView(view) {
|
||||
axios.post('settings/updateDefaultProfileView', { name: view })
|
||||
.then(response => {
|
||||
this.global_profile_default_view = view;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Fix avatar in case img is on error.
|
||||
*
|
||||
* @param {event} event
|
||||
*/
|
||||
fixAvatarDisplay(event) {
|
||||
event.srcElement.classList = ['hidden'];
|
||||
event.srcElement.nextElementSibling.classList.remove('hidden');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user