Auto save
complete
S
Sales & Marketing
complete
J
Josh Boutelle
Sales & Marketing: is this actually completed? Is there somewhere to turn this on?
D
David Bourbonniere
Sales & Marketing Is this completed? We need this on the Email Marketing Builder.
R
Renante Paglomutan
Autosave on proposals, estimates and invoices as wel.
P
Phil Voysey
Yes, I keep losing what I've just done. Autosave would be a godsend.
G
Gethyn Hill
THIS WOULD BE A LIFESAVER!! I have so many clients who are losing work through forgetting to press save.
J
Jack Brandt
Sadly just lost 75 minutes of work on an automation... Autosave would have been a lifesaver.
Y
Y S
Critical feature. +1.
Also, there are 2 places to have to save currently: at the email level, and the automation level. Another potential step to forget and lose saved changes.
G
Gianni Dalerta
Need autosave for email campaigns! losing work and forgetting to press save is a problem, almost no email campaign systems require you to press save all the time.
E
Eric Yaillen
GHL is written in Vue.js. Enabling Autosave is a common feature of this development environment. If some users prefer the old tech way of requiring the pressing of a save button, then create a setting parameter where AutoSave is the default and the account or user can choose to turn it off.
In the code below, we have a Vue component that demonstrates autosave functionality. The
<input>
element is bound to the content
data property using v-model
, so any changes made by the user will automatically update the content
value. The @input
event is used to trigger the handleInput
method whenever the user types.Inside the
handleInput
method, we start the autosave process by setting the saving
flag to true
and debouncing the saveContent
method using setTimeout
. This ensures that the content is only saved after a brief delay (in this case, 1 second) to avoid frequent server calls.The
loadContent
method simulates loading the saved content from the server. In this example, we use a timeout to mimic an asynchronous operation, but you should replace it with your actual server request.The
saveContent
method simulates saving the content to the server. Again, we use a timeout to mimic an asynchronous operation. You should replace this code with your server-side logic to save the content.The
<p>
elements are conditionally rendered based on the saving
flag. If saving
is true
, it displays "Saving..."; otherwise, it shows the timestamp of the last saved content.Please note that this is a simplified example to demonstrate the autosave functionality in Vue.js. You can adapt this code according to your specific requirements and integrate it into your Vue.js application.
CODAI ^-^
To implement autosave functionality in Vue.js, here is an example of possible code that can be easily called as a function from your js library:
<template>
<div>
<input v-model="content" @input="handleInput" />
<p v-if="saving">Saving...</p>
<p v-else>Saved at {{ lastSaved }}</p>
</div>
</template>
<script>
import { ref, watchEffect } from 'vue';
export default {
data() {
return {
content: '',
saving: false,
lastSaved: null
};
},
mounted() {
// Load the saved content from the server
this.loadContent();
},
methods: {
handleInput() {
// Start autosave when user input changes
this.saving = true;
// Debounce autosave to avoid frequent server calls
if (this.timeout) {
clearTimeout(this.timeout);
}
this.timeout = setTimeout(() => {
this.saveContent();
}, 1000);
},
loadContent() {
// Simulate loading content from the server
setTimeout(() => {
this.content = 'Loaded content';
this.lastSaved = new Date().toLocaleTimeString();
}, 1500);
},
saveContent() {
// Simulate saving content to the server
setTimeout(() => {
this.saving = false;
this.lastSaved = new Date().toLocaleTimeString();
}, 1500);
}
}
};
</script>
C
Corey Johnson
But allow us to turn it off because some of us who are in the habit of saving our work anyway want to retain the ability to simply close without saving in those situations where we really screwed something up and the "undo" arrow button is not working, which happens a lot.
G
Gianni Dalerta
Corey Johnson: they need to get the undo working and have a history list up to a certain amount of undos, so you can go back to a particular version of your work.
R
Ryan Long
HighLevel Support - can we please get an update on this?!
Load More
→