Few Terminal based name corrects
This commit is contained in:
parent
90e790cee4
commit
65149d5049
|
@ -244,7 +244,7 @@ export const asyncRoutes = [
|
||||||
path: 'create',
|
path: 'create',
|
||||||
component: () => import('@/views/products/create'),
|
component: () => import('@/views/products/create'),
|
||||||
name: 'CreateProduct',
|
name: 'CreateProduct',
|
||||||
meta: { title: 'Create Products', icon: 'edit' }
|
meta: { title: 'Create Product', icon: 'edit' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'edit/:id',
|
path: 'edit/:id',
|
||||||
|
|
|
@ -185,12 +185,12 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setTagsViewTitle() {
|
setTagsViewTitle() {
|
||||||
const title = 'Edit Account'
|
const title = 'Edit Terminal'
|
||||||
const route = Object.assign({}, this.tempRoute, { title: `${title} - ${this.postForm.name}` })
|
const route = Object.assign({}, this.tempRoute, { title: `${title} - ${this.postForm.name}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
},
|
},
|
||||||
setPageTitle() {
|
setPageTitle() {
|
||||||
const title = 'Edit Account'
|
const title = 'Edit Terminal'
|
||||||
document.title = `${title} - ${this.postForm.id}`
|
document.title = `${title} - ${this.postForm.id}`
|
||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
@ -203,13 +203,13 @@ export default {
|
||||||
methodToCall(this.postForm).then((r) => {
|
methodToCall(this.postForm).then((r) => {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: 'Success',
|
title: 'Success',
|
||||||
message: 'Account Saved',
|
message: 'Terminal Saved',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
|
|
||||||
// Redirect to the edit page when we create a new one
|
// Redirect to the edit page when we create a new one
|
||||||
if (!this.isEdit) { this.$router.push(`/accounts/edit/${r.data.id}`) }
|
if (!this.isEdit) { this.$router.push(`/terminals/edit/${r.data.id}`) }
|
||||||
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<account-detail :is-edit="false" />
|
<terminal-detail :is-edit="false" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AccountDetail from './components/AccountDetail'
|
import TerminalDetail from './components/TerminalDetail'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CreateForm',
|
name: 'CreateForm',
|
||||||
components: { AccountDetail }
|
components: { TerminalDetail }
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<account-detail :is-edit="true" />
|
<terminal-detail :is-edit="true" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AccountDetail from './components/AccountDetail'
|
import TerminalDetail from './components/TerminalDetail'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EditForm',
|
name: 'EditForm',
|
||||||
components: { AccountDetail }
|
components: { TerminalDetail }
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue