Few Terminal based name corrects

This commit is contained in:
Dean Bartok-Thomas 2019-08-31 22:02:57 +01:00
parent 90e790cee4
commit 65149d5049
4 changed files with 11 additions and 11 deletions

View File

@ -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',

View File

@ -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) => {

View File

@ -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>

View File

@ -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>