-
Notifications
You must be signed in to change notification settings - Fork 2
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 #143 from RyoichiNakai/develop
本番反映 リリース
- Loading branch information
Showing
5 changed files
with
89 additions
and
8 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
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
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,49 @@ | ||
<template> | ||
<v-dialog :value="open" width="600px" @input="close"> | ||
<v-card> | ||
<v-card-title> | ||
{{ cardTitle }} | ||
</v-card-title> | ||
|
||
<v-card-text> | ||
<p>{{ cardText }}</p> | ||
</v-card-text> | ||
|
||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn text @click="close"> 閉じる </v-btn> | ||
<v-btn color="accent" text @click="signOut"> ログアウト </v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'LogOutDialog', | ||
props: { | ||
open: { | ||
type: Boolean, | ||
default: false, | ||
required: true, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
cardTitle: 'ログアウトの確認', | ||
cardText: '本当にログアウトしますか?', | ||
} | ||
}, | ||
methods: { | ||
close() { | ||
this.$emit('close', false) | ||
}, | ||
signOut() { | ||
this.$store.dispatch('auth/signOut') | ||
this.close() | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style></style> |
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Header from './Header' | ||
import NavDrawer from './NavDrawer' | ||
import LogOutDialog from './LogOutDialog' | ||
|
||
export { Header, NavDrawer } | ||
export { Header, NavDrawer, LogOutDialog } |