Skip to content

Commit

Permalink
reset the number display for changes after undo geneontology/noctua-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmushayahama committed Jan 11, 2021
1 parent 11de0b8 commit 4af1549
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/@noctua.form/services/cam.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ export class CamService {
return self._noctuaGraphService.diffModel(cam);
}

storedModel(cam: Cam) {
const self = this;

return self._noctuaGraphService.storedModel(cam);
}

resetModel(cam: Cam) {
const self = this;

Expand Down
2 changes: 1 addition & 1 deletion src/@noctua.form/services/cams.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class CamsService {
}

resetCam(cam: Cam) {
return this._noctuaGraphService.resetModel(cam);
return forkJoin([this._noctuaGraphService.resetModel(cam)]);
}

resetCams() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export class ArtBasketComponent implements OnInit, OnDestroy {
if (cams) {
self.camsService.loadCams();
self.noctuaReviewSearchService.onReplaceChanged.next(true);
self.camsService.reviewChanges();
}
});
self.camsService.reviewChanges();
}

resetCams() {
Expand All @@ -150,9 +150,9 @@ export class ArtBasketComponent implements OnInit, OnDestroy {
if (cams) {
self.camsService.loadCams();
self.noctuaReviewSearchService.onReplaceChanged.next(true);
self.camsService.reviewChanges();
}
});
self.camsService.reviewChanges();
}

reviewChanges() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ export class CamTableComponent implements OnInit, OnDestroy {
resetModel(cam: Cam) {
this.camService.resetModel(cam);
}
storedModel(cam: Cam) {
this.camService.storedModel(cam);
}

displayErrors() {
const errors = this.cam.getViolationDisplayErrors();
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare var global_golr_server: any;
declare var global_workbenches_universal: any;
declare var global_workbenches_model: any;

const baristaLocation = typeof global_barista_location !== 'undefined' ? global_barista_location : 'http://localhost:3400';
const baristaLocation = typeof global_barista_location !== 'undefined' ? global_barista_location : 'http://barista-dev.berkeleybop.org';//'http://localhost:3400';
const minervaDefinitionName = typeof global_minerva_definition_name !== 'undefined' ? global_minerva_definition_name : 'minerva_public_dev';
const golrNeoServer = typeof global_golr_neo_server !== 'undefined'
? global_golr_neo_server
Expand Down

0 comments on commit 4af1549

Please sign in to comment.