v-dialog(v-model='dialog' persistent max-width='50%')
template
v-btn.block(flat slot="activator" :disabled="!(kendraIndexerEnabled)") Kendra Web Page Indexer
v-card(id="alexa-modal")
v-card-title(primary-title)
.headline Kendra Web Page Indexer
v-card-text
p Current Status {{status}}
v-card-actions
v-btn(
id="btnKendraStartIndex"
:disabled="status == 'PENDING' || status=='STARTING'"
@click="start"
) Start Indexing
v-flex(v-if="history && history.length>0")
v-card
table.table
caption Sync History
tr
th(style="text-align:left") Start Time
th(style="text-align:left") End Time
th(style="text-align:left") Status
th(style="text-align:left") Error Message
th(style="text-align:left") Documents Added
th(style="text-align:left") Documents Modified
th(style="text-align:left") Documents Failed
template(v-for="(job,index) in history")
tr
td {{job.StartTime}}
td {{job.EndTime}}
td {{job.Status}}
td {{job.ErrorMessage}}
td {{job.Metrics.DocumentsAdded}}
td {{job.Metrics.DocumentsModified}}
td {{job.Metrics.DocumentsDeleted}}
v-card-actions
v-spacer
v-btn(@click='dialog = false') Close