mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Improve commit modal user facing messaging (#12161)
This commit is contained in:
committed by
GitHub
parent
9180b46b52
commit
ad39243982
@@ -43,6 +43,15 @@ async function pushWorkfolder() {
|
||||
try {
|
||||
const status = await sourceControlStore.getAggregatedStatus();
|
||||
|
||||
if (!status.length) {
|
||||
toast.showMessage({
|
||||
title: 'No changes to commit',
|
||||
message: 'Everything is up to date',
|
||||
type: 'info',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
uiStore.openModalWithData({
|
||||
name: SOURCE_CONTROL_PUSH_MODAL_KEY,
|
||||
data: { eventBus, status },
|
||||
@@ -68,6 +77,7 @@ async function pullWorkfolder() {
|
||||
const statusWithoutLocallyCreatedWorkflows = status.filter((file) => {
|
||||
return !(file.type === 'workflow' && file.status === 'created' && file.location === 'local');
|
||||
});
|
||||
|
||||
if (statusWithoutLocallyCreatedWorkflows.length === 0) {
|
||||
toast.showMessage({
|
||||
title: i18n.baseText('settings.sourceControl.pull.upToDate.title'),
|
||||
|
||||
Reference in New Issue
Block a user