diff --git a/app/javascript/check-stamp.js b/app/javascript/check-stamp.js
index b2074796239..c3ea8dcaaa2 100644
--- a/app/javascript/check-stamp.js
+++ b/app/javascript/check-stamp.js
@@ -1,5 +1,3 @@
-import Vue from 'vue'
-import CheckStamp from 'check-stamp.vue'
import store from 'check-store.js'
import CSRF from 'csrf'
import 'whatwg-fetch'
diff --git a/app/javascript/check-stamp.vue b/app/javascript/check-stamp.vue
deleted file mode 100644
index 4651da78f14..00000000000
--- a/app/javascript/check-stamp.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-
-.stamp.stamp-approve(v-if='checkId')
- h2.stamp__content.is-title
- | 確認済
- time.stamp__content.is-created-at
- | {{ checkCreatedAt }}
- .stamp__content.is-user-name
- .stamp__content-inner
- | {{ checkUserName }}
-
-
diff --git a/app/javascript/check-store.js b/app/javascript/check-store.js
index 56704b345bf..b9eb66797f9 100644
--- a/app/javascript/check-store.js
+++ b/app/javascript/check-store.js
@@ -7,8 +7,6 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
checkId: null,
- userName: null,
- createdAt: null,
checkableId: null,
checkableType: null,
productId: null,
@@ -17,8 +15,6 @@ export default new Vuex.Store({
},
getters: {
checkId: (state) => state.checkId,
- userName: (state) => state.userName,
- createdAt: (state) => state.createdAt,
checkableId: (state) => state.checkableId,
checkableType: (state) => state.checkableType,
productId: (state) => state.productId,
@@ -26,13 +22,8 @@ export default new Vuex.Store({
watchId: (state) => state.watchId
},
mutations: {
- setCheckable(
- state,
- { checkId, userName, createdAt, checkableId, checkableType }
- ) {
+ setCheckable(state, { checkId, checkableId, checkableType }) {
state.checkId = checkId
- state.userName = userName
- state.createdAt = createdAt
state.checkableId = checkableId
state.checkableType = checkableType
},
@@ -64,16 +55,12 @@ export default new Vuex.Store({
if (json[0]) {
commit('setCheckable', {
checkId: json[0].id,
- createdAt: json[0].created_at,
- userName: json[0].user.login_name,
checkableId: checkableId,
checkableType: checkableType
})
} else {
commit('setCheckable', {
checkId: null,
- createdAt: null,
- userName: null,
checkableId: checkableId,
checkableType: checkableType
})