Skip to content

Commit

Permalink
fix build and merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-kim committed Feb 3, 2022
1 parent afac3cd commit ebcab28
Show file tree
Hide file tree
Showing 11 changed files with 769 additions and 12,284 deletions.
14 changes: 13 additions & 1 deletion .eslintrc.json
Expand Up @@ -13,5 +13,17 @@
"no-unused-vars": ["error", { "args": "none" }],
"prefer-const": "warn",
"quotes": ["warn", "single", { "avoidEscape": true }]
}
},
"globals": {
"ungit": "readonly"
},
"overrides": [
{
"files": ["**/*.js"],
"env": { "browser": true, "es6": true, "node": true },
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"globals": {},
"parser": "@babel/eslint-parser",
}
]
}
3 changes: 2 additions & 1 deletion components/branches/branches.js
Expand Up @@ -57,7 +57,8 @@ class BranchesViewModel extends ComponentRoot {
async onProgramEvent(event) {
if (
event.event === 'request-app-content-refresh' ||
event.event === 'branch-updated'
event.event === 'branch-updated' ||
event.event === 'git-directory-changed'
) {
await this.updateRefs();
}
Expand Down
2 changes: 1 addition & 1 deletion components/graph/graph.js
Expand Up @@ -272,7 +272,7 @@ class GraphViewModel extends ComponentRoot {
}

async onProgramEvent(event) {
if (event.event == 'working-tree-changed') {
if (event.event == 'git-directory-changed') {
await Promise.all([this.loadNodesFromApi(), this.updateBranches()]);
} else if (event.event == 'request-app-content-refresh') {
await this.loadNodesFromApi();
Expand Down
3 changes: 1 addition & 2 deletions components/remotes/remotes.js
Expand Up @@ -37,8 +37,7 @@ class RemotesViewModel {
}

async onProgramEvent(event) {
if (event.event === 'request-app-content-refresh' ||
event.event === 'request-fetch-tags') {
if (event.event === 'request-app-content-refresh' || event.event === 'request-fetch-tags') {
await this.fetch({ tags: true });
} else if (event.event === 'git-directory-changed' && this.shouldAutoFetch) {
await this.fetch({ tags: true });
Expand Down
8 changes: 5 additions & 3 deletions components/staging/staging.js
Expand Up @@ -124,9 +124,11 @@ class StagingViewModel extends ComponentRoot {
}

async onProgramEvent(event) {
if (event.event == 'request-app-content-refresh' ||
event.event === 'working-tree-changed' ||
event.event === 'git-directory-changed') {
if (
event.event == 'request-app-content-refresh' ||
event.event === 'working-tree-changed' ||
event.event === 'git-directory-changed'
) {
await this.refreshContent();
this.invalidateFilesDiffs();
}
Expand Down

0 comments on commit ebcab28

Please sign in to comment.