Adding current tags prop

parent 45e4066d
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
export default { export default {
props: { props: {
namespace: {String} namespace: {String},
currentTags: {default : null},
}, },
data() { data() {
return { return {
...@@ -29,6 +30,9 @@ ...@@ -29,6 +30,9 @@
} }
}, },
mounted() { mounted() {
console.log(this.currentTags);
if (this.currentTags !== null) {
}
axios.get(route('api.tag.tag.by-namespace', {namespace: this.namespace})) axios.get(route('api.tag.tag.by-namespace', {namespace: this.namespace}))
.then(response => { .then(response => {
this.availableTags = response.data; this.availableTags = response.data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment