Use ConfirmationPopover rather than custom form

This commit is contained in:
George Drummond
2019-03-13 11:33:55 -04:00
parent 8ca0e04402
commit c3cb46873e
8 changed files with 42 additions and 17 deletions

View File

@@ -4,10 +4,13 @@ export default {
props: {
action: String,
btn_text: String,
btn_icon: String,
btn_class: String,
cancel_btn_text: String,
confirm_btn_text: String,
confirm_msg: String,
csrf_token: String,
name: String,
},
template: `
@@ -26,7 +29,10 @@ export default {
</button>
</div>
</template>
<button class="tooltip-target" type="button">{{ btn_text }}</button>
<button class="tooltip-target" v-bind:class="[btn_class]" type="button">
<div v-html="btn_icon" />
{{ btn_text }}
</button>
</v-popover>
`,
}