Browse Source

Fixes backwards indicator

main
Eric Amodio 6 years ago
parent
commit
58cd5c1996
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/views/branchNode.ts
  2. +2
    -2
      src/views/statusNode.ts

+ 2
- 2
src/views/branchNode.ts View File

@ -65,10 +65,10 @@ export class BranchNode extends ExplorerRefNode {
if (this.branch.state.ahead || this.branch.state.behind) {
if (this.branch.state.behind) {
iconSuffix = '-yellow';
iconSuffix = '-red';
}
if (this.branch.state.ahead) {
iconSuffix = this.branch.state.behind ? '-red' : '-green';
iconSuffix = this.branch.state.behind ? '-yellow' : '-green';
}
}
}

+ 2
- 2
src/views/statusNode.ts View File

@ -83,10 +83,10 @@ export class StatusNode extends ExplorerNode {
hasChildren = true;
if (status.state.behind) {
iconSuffix = '-yellow';
iconSuffix = '-red';
}
if (status.state.ahead) {
iconSuffix = status.state.behind ? '-red' : '-green';
iconSuffix = status.state.behind ? '-yellow' : '-green';
}
}
}

Loading…
Cancel
Save