- Introduced a new ScriptNodeConfiguration component for configuring JavaScript tasks within the process builder. - Added ScriptNodeConfigurationModal for user-friendly script task setup, including input and output variable management. - Updated process management logic to handle script variables directly within the process store, improving variable management and accessibility. - Enhanced existing components to support the new script task feature, ensuring seamless integration with the process flow. - Improved overall user experience with intuitive UI elements and clear documentation for the new functionality.
39 lines
814 B
JavaScript
39 lines
814 B
JavaScript
import { useToast as useVueToast } from 'vue-toastification';
|
|
|
|
export const useToast = () => {
|
|
const toast = useVueToast();
|
|
|
|
return {
|
|
success: (message, options = {}) => {
|
|
toast.success(message, {
|
|
timeout: 3000,
|
|
position: 'bottom-right',
|
|
...options
|
|
});
|
|
},
|
|
|
|
error: (message, options = {}) => {
|
|
toast.error(message, {
|
|
timeout: 5000,
|
|
position: 'bottom-right',
|
|
...options
|
|
});
|
|
},
|
|
|
|
warning: (message, options = {}) => {
|
|
toast.warning(message, {
|
|
timeout: 4000,
|
|
position: 'bottom-right',
|
|
...options
|
|
});
|
|
},
|
|
|
|
info: (message, options = {}) => {
|
|
toast.info(message, {
|
|
timeout: 3000,
|
|
position: 'bottom-right',
|
|
...options
|
|
});
|
|
}
|
|
};
|
|
};
|