-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from Progress1/publish_confirmation
Add confirmation to Publish button
- Loading branch information
Showing
4 changed files
with
338 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<v-overlay :dark="false" style="z-index: 10000"> | ||
<v-card class="mx-auto" outlined> | ||
<!-- This will be generic messageBox in future. Currently support only YES-CANCEL buttons, | ||
later we add support for buttons & icons configuration --> | ||
<v-card-title class="justify-center"> | ||
<v-icon style="padding-right: 10px" color="blue">mdi-message-question</v-icon> | ||
{{ title }} | ||
</v-card-title> | ||
<v-card-text class="font-weight-black text-center"> | ||
{{ message }} | ||
</v-card-text> | ||
<v-card-actions class="justify-center"> | ||
<v-btn @click.prevent="selectButton('Ok')" class="red accent-1" color="red darken-4" text>{{ $t('common.messagebox.yes') }}</v-btn> | ||
<v-btn @click.prevent="selectButton('Cancel')" class="mx-4 justify-center">{{ $t('common.messagebox.cancel') }}</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-overlay> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
title: String, | ||
message: String, | ||
}, | ||
methods: { | ||
selectButton(buttonType) { | ||
this.$emit('button' + buttonType); | ||
}, | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
</style> |
Oops, something went wrong.