Skip to content

Commit

Permalink
Refreshes the page when a change is made within the angular generated…
Browse files Browse the repository at this point in the history
… app (hyperledger-archives#3830)

Signed-off-by: Ellis Henderson <[email protected]>
  • Loading branch information
EllisHenderson authored Apr 12, 2018
1 parent db09d8b commit c0bb6f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h4 class="modal-title" id="addAssetModalLabel">Create asset</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button (click)="addAsset(myForm);" type="submit" class="btn btn-success" data-dismiss="modal">Confirm</button>
<button (click)="addAsset(myForm);" type="submit" class="btn btn-success" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Confirm</button>

</div>
</form>
Expand Down Expand Up @@ -138,7 +138,7 @@ <h4 class="modal-title" id="updateAssetModalLabel">Update Asset</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button (click)="updateAsset(myForm)" type="submit" class="btn btn-success" data-dismiss="modal">Submit</button>
<button (click)="updateAsset(myForm)" type="submit" class="btn btn-success" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Submit</button>
</div>
</form>
</div>
Expand All @@ -160,7 +160,7 @@ <h4 class="modal-title" id="deleteAssetModalLabel">Delete Asset</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
<button (click)="deleteAsset()" type="submit" class="btn btn-danger" data-dismiss="modal">Yes</button>
<button (click)="deleteAsset()" type="submit" class="btn btn-danger" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Yes</button>
</div>
</form>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h4 class="modal-title" id="addParticipantModalLabel">Create participant</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button (click)="addParticipant(myForm);" type="submit" class="btn btn-success" data-dismiss="modal">Confirm</button>
<button (click)="addParticipant(myForm);" type="submit" class="btn btn-success" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Confirm</button>

</div>
</form>
Expand Down Expand Up @@ -138,7 +138,7 @@ <h4 class="modal-title" id="updateParticipantModalLabel">Update Participant</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button (click)="updateParticipant(myForm)" type="submit" class="btn btn-success" data-dismiss="modal">Submit</button>
<button (click)="updateParticipant(myForm)" type="submit" class="btn btn-success" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Submit</button>
</div>
</form>
</div>
Expand All @@ -160,7 +160,7 @@ <h4 class="modal-title" id="deleteParticipantModalLabel">Delete Participant</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
<button (click)="deleteParticipant()" type="submit" class="btn btn-danger" data-dismiss="modal">Yes</button>
<button (click)="deleteParticipant()" type="submit" class="btn btn-danger" value="Refresh Page" onClick="setTimeout(window.location.reload.bind(window.location), 2000);" data-dismiss="modal">Yes</button>
</div>
</form>
</div>
Expand Down

0 comments on commit c0bb6f6

Please sign in to comment.