mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(editor): Adding branch color (#6380)
* fix(editor): Adding branch color * fix(editor): backend refactor preferences update * fix(editor): frontend refactor preferences update
This commit is contained in:
@@ -172,7 +172,7 @@ export class VersionControlService {
|
||||
async setBranch(branch: string): Promise<{ branches: string[]; currentBranch: string }> {
|
||||
await this.versionControlPreferencesService.setPreferences({
|
||||
branchName: branch,
|
||||
connected: true,
|
||||
connected: branch?.length > 0,
|
||||
});
|
||||
return this.gitService.setBranch(branch);
|
||||
}
|
||||
@@ -216,40 +216,6 @@ export class VersionControlService {
|
||||
});
|
||||
}
|
||||
|
||||
// async pushWorkfolder(
|
||||
// options: VersionControlPushWorkFolder,
|
||||
// ): Promise<PushResult | VersionControlledFile[]> {
|
||||
// await this.gitService.fetch();
|
||||
// await this.export(); // refresh workfolder
|
||||
// await this.stage(options);
|
||||
// await this.gitService.commit(options.message ?? 'Updated Workfolder');
|
||||
// return this.gitService.push({
|
||||
// branch: this.versionControlPreferencesService.getBranchName(),
|
||||
// force: options.force ?? false,
|
||||
// });
|
||||
// }
|
||||
|
||||
// TODO: Alternate implementation for pull
|
||||
// async pullWorkfolder(
|
||||
// options: VersionControllPullOptions,
|
||||
// ): Promise<ImportResult | VersionControlledFile[] | PullResult | undefined> {
|
||||
// const diffResult = await this.getStatus();
|
||||
// const possibleConflicts = diffResult?.filter((file) => file.conflict);
|
||||
// if (possibleConflicts?.length > 0 || options.force === true) {
|
||||
// await this.unstage();
|
||||
// if (options.force === true) {
|
||||
// return this.resetWorkfolder(options);
|
||||
// } else {
|
||||
// return diffResult;
|
||||
// }
|
||||
// }
|
||||
// const pullResult = await this.gitService.pull();
|
||||
// if (options.importAfterPull) {
|
||||
// return this.import(options);
|
||||
// }
|
||||
// return pullResult;
|
||||
// }
|
||||
|
||||
async pullWorkfolder(
|
||||
options: VersionControllPullOptions,
|
||||
): Promise<ImportResult | StatusResult | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user