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