File tree Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 23
23
</v-list >
24
24
<v-divider ></v-divider >
25
25
<v-list dense >
26
- <v-subheader >Explore</v-subheader >
26
+ <v-subheader >Submissions</v-subheader >
27
+ <v-list-item class =" mb-2" >
28
+ <v-btn
29
+ block
30
+ color =" primary"
31
+ class =" pa-2"
32
+ @click =" openCreateSubmissionDialog()"
33
+ >
34
+ <v-icon left >mdi-plus</v-icon >
35
+ Submit Record
36
+ </v-btn >
37
+ </v-list-item >
27
38
<v-list-item
28
39
v-for =" (item, i) in navItems"
29
40
:key =" i"
@@ -285,7 +296,7 @@ export default {
285
296
openCreateSubmissionDialog () {
286
297
try {
287
298
this .$root .$emit (' openEditRecordDialog' , {
288
- recordInfo: ' MySubmission ' ,
299
+ recordInfo: ' UserSubmission ' ,
289
300
mode: ' add' ,
290
301
selectedItem: {},
291
302
})
Original file line number Diff line number Diff line change 1
1
// map model alias -> model. for use in /s/ type paths
2
2
export { MyProfile as MyProfile } from './myProfile'
3
- export { UserSubmission as userSubmission } from './userSubmission'
3
+ export { UserSubmission as UserSubmission } from './userSubmission'
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default {
85
85
openCreateSubmissionDialog () {
86
86
try {
87
87
this .$root .$emit (' openEditRecordDialog' , {
88
- recordInfo: ' MySubmission ' ,
88
+ recordInfo: ' UserSubmission ' ,
89
89
mode: ' add' ,
90
90
selectedItem: {},
91
91
})
Original file line number Diff line number Diff line change 16
16
<script >
17
17
import CrudRecordPage from ' ~/components/page/crudRecordPage.vue'
18
18
import * as specialModelsMap from ' ~/models/special'
19
- import { kebabToCamelCase } from ' ~/services/base'
19
+ import { capitalizeString , kebabToCamelCase } from ' ~/services/base'
20
20
21
21
export default {
22
22
async asyncData ({ params }) {
@@ -30,7 +30,7 @@ export default {
30
30
31
31
computed: {
32
32
currentModel () {
33
- return specialModelsMap[this .type ]
33
+ return specialModelsMap[capitalizeString ( this .type ) ]
34
34
},
35
35
},
36
36
}
Original file line number Diff line number Diff line change 15
15
<script >
16
16
import ViewRecordPage from ' ~/components/page/viewRecordPage.vue'
17
17
import * as specialModelsMap from ' ~/models/special'
18
- import { kebabToCamelCase } from ' ~/services/base'
18
+ import { capitalizeString , kebabToCamelCase } from ' ~/services/base'
19
19
20
20
export default {
21
21
async asyncData ({ params }) {
@@ -29,7 +29,7 @@ export default {
29
29
30
30
computed: {
31
31
currentModel () {
32
- return specialModelsMap[this .type ]
32
+ return specialModelsMap[capitalizeString ( this .type ) ]
33
33
},
34
34
},
35
35
}
You can’t perform that action at this time.
0 commit comments