Browse Source

Reorders methods

main
Eric Amodio 6 years ago
parent
commit
4d15302187
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      src/views/nodes/repositoryNode.ts

+ 12
- 12
src/views/nodes/repositoryNode.ts View File

@ -187,18 +187,6 @@ export class RepositoryNode extends SubscribeableViewNode {
}
@log()
async star() {
await this.repo.star();
void this.parent!.triggerChange();
}
@log()
async unstar() {
await this.repo.unstar();
void this.parent!.triggerChange();
}
@log()
push(options: { force?: boolean; progress?: boolean } = {}) {
return this.repo.push(options);
}
@ -212,6 +200,18 @@ export class RepositoryNode extends SubscribeableViewNode {
await this.ensureSubscription();
}
@log()
async star() {
await this.repo.star();
void this.parent!.triggerChange();
}
@log()
async unstar() {
await this.repo.unstar();
void this.parent!.triggerChange();
}
@debug()
protected async subscribe() {
const disposables = [this.repo.onDidChange(this.onRepoChanged, this)];

Loading…
Cancel
Save