Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Added created token's wrapping token to notification message
Browse files Browse the repository at this point in the history
  • Loading branch information
Caiyeon committed Aug 18, 2017
1 parent f46ff7f commit f423bd7
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions frontend/client/views/admin/Requests.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,18 @@
</div>
</div>
</div>
<article class="message is-primary">
<pre v-highlightjs="JSON.stringify(tokenRequestPreview, null, ' ')"><code class="javascript"></code></pre>
</article>
<div class="columns">
<div class="column">
<article class="message is-primary">
<pre v-highlightjs="JSON.stringify(tokenRequestPreview, null, ' ')"><code class="javascript"></code></pre>
</article>
</div>
<div class="column">
<article v-if="request.CreateResponse" class="message is-primary">
<pre v-highlightjs="JSON.stringify(request.CreateResponse.wrap_info, null, ' ')"><code class="javascript"></code></pre>
</article>
</div>
</div>
</div>
</article>

Expand Down Expand Up @@ -316,6 +325,14 @@ export default {
})
this.bConfirm = false
this.bReject = false
// if there is wrapped info, notify user
this.$message({
message: 'Created resource is in wrapping token: ' + this.request.CreateResponse.wrap_info.token,
type: 'success',
duration: 0,
showCloseButton: true
})
} else {
if (this.request.Progress === 1) {
this.$notify({
Expand Down

0 comments on commit f423bd7

Please sign in to comment.