mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
Add code for a ‘new project’ button to project list navigation.
This is currently disabled though (value in route/index.js is commented out) as it is not possible at the moment to create new projects fully from scratch from the frontend. See comment on previous commit. NB: projects may be created fully from scratch by making an API request with a suitable YAML / JSON configuration file, thusly: curl -vs "https://[hostname]/api/project" -X POST \ -H "Content-Type: application/yaml" --data-binary @/path/to/configuration.yaml
This commit is contained in:
@@ -16,7 +16,9 @@ import Log from '../views/Log.vue'
|
||||
import QC from '../views/QC.vue'
|
||||
import Graphs from '../views/Graphs.vue'
|
||||
import Map from '../views/Map.vue'
|
||||
import ProjectSettings from '../views/ProjectSettings.vue'
|
||||
import DougalAppBarExtensionProject from '../components/app-bar-extension-project'
|
||||
import DougalAppBarExtensionProjectList from '../components/app-bar-extension-project-list'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
@@ -80,7 +82,10 @@ Vue.use(VueRouter)
|
||||
meta: {
|
||||
breadcrumbs: [
|
||||
{ text: "Projects", href: "/projects", disabled: true }
|
||||
]
|
||||
],
|
||||
appBarExtension: {
|
||||
// component: DougalAppBarExtensionProjectList
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -168,6 +173,11 @@ Vue.use(VueRouter)
|
||||
path: "map",
|
||||
name: "map",
|
||||
component: Map
|
||||
},
|
||||
{
|
||||
path: "configuration",
|
||||
name: "configuration",
|
||||
component: ProjectSettings
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user