Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #171 from AppliedIS/fix-attachment
Browse files Browse the repository at this point in the history
fix issue with attachment URLs not resolving
  • Loading branch information
MrMatt57 committed Nov 28, 2016
2 parents 082787f + 1197fe7 commit d0ef413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = function(ngModule) {
'use strict';

var vm = this;
vm.attachmentApiURL = apiService.attachmentApiURL + stateService.ein;
vm.access_token = stateService.access_token;
vm.stateService = stateService;
vm.apiService = apiService;

this.onAttachmentSelected = function(fileinput) {
if(fileinput.files.length > 0){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<label class="underlabel" for="{{::$id}}">File types accepted: PDF, Word, Excel, JPG, PNG</label>
</div>
<div ng-show="attachmentId != undefined">
<a ng-href="{{vm.attachmentApiURL}}/{{attachmentId}}?access_token={{vm.access_token}}" id="{{attachmentId}}"><span>{{attachmentName}}</span></a>
<a ng-href="{{vm.apiService.attachmentApiURL}}{{vm.stateService.ein}}/{{attachmentId}}?access_token={{vm.stateService.access_token}}" id="{{attachmentId}}"><span>{{attachmentName}}</span></a>
<button class="usa-button-secondary" ng-click="vm.deleteAttachment(attachmentId)">Delete</button>
</div>

0 comments on commit d0ef413

Please sign in to comment.