Skip to content

Commit

Permalink
adds refresh button to object list, #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Danwhy committed Aug 1, 2018
1 parent 5f4a368 commit 629e1b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lambda/templates/html-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
border-spacing: 0;
border-radius: 2px;
}
.refresh-container {
width: 90%;
margin: auto;
text-align: right;
}
td {
text-align: center;
}
Expand All @@ -51,6 +56,11 @@
</div>
{{/if}}
</div>
<div class="refresh-container">
<form>
<button type="submit">Refresh</button>
</form>
</div>
<table class="table-360">
<tr class="table-header">
<th>ID</th>
Expand Down
2 changes: 1 addition & 1 deletion lambda/uploadForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports.handler = (event, context, callback) => {
Bucket: process.env.S3_BUCKET,
Fields: {
acl: 'public-read',
success_action_redirect: `https://${event.headers.Host}/${process.env.STAGE}/list-objects`
success_action_redirect: `https://${event.headers.Host}/${process.env.STAGE}/list-objects?uploaded=true`
},
Conditions: [
['starts-with', '$key', '']
Expand Down

0 comments on commit 629e1b6

Please sign in to comment.