2019-03-22 07:39:03 +00:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<projectvars :variables="variables" :allvariables="allvariables"/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { fetchVariables } from "@/util/data.js";
|
|
|
|
|
|
|
|
|
|
import projectvars from "@/components/projectvars";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: { projectvars },
|
|
|
|
|
name: "projectsettings",
|
|
|
|
|
props: {
|
|
|
|
|
ownertype: String,
|
|
|
|
|
ownername: String,
|
2019-04-02 16:08:03 +00:00
|
|
|
projectref: Array
|
2019-03-22 07:39:03 +00:00
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
variables: [],
|
|
|
|
|
allvariables: []
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created: async function() {
|
|
|
|
|
this.variables = await fetchVariables(
|
2019-04-02 16:08:03 +00:00
|
|
|
"project",
|
|
|
|
|
[this.ownertype, this.ownername, ...this.projectref].join("/"),
|
|
|
|
|
false
|
2019-03-22 07:39:03 +00:00
|
|
|
);
|
|
|
|
|
this.allvariables = await fetchVariables(
|
2019-04-02 16:08:03 +00:00
|
|
|
"project",
|
|
|
|
|
[this.ownertype, this.ownername, ...this.projectref].join("/"),
|
2019-03-22 07:39:03 +00:00
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
@import "@/css/_variables.scss";
|
|
|
|
|
</style>
|