nicer tags selection
This commit is contained in:
parent
b45841fff8
commit
0d4012b4c6
4 changed files with 8 additions and 11 deletions
|
@ -20,6 +20,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<!--button class="btn btn-outline-secondary form-control-lg" type="button" @click="chooseOption">Add</button-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -133,6 +134,7 @@ export default {
|
||||||
return this.value;
|
return this.value;
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
|
console.log("set", value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,11 +25,6 @@ import BadgeSelectField from "@/components/BadgeSelectField.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TagField",
|
name: "TagField",
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
tag: ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
BadgeSelectField,
|
BadgeSelectField,
|
||||||
...BIcons
|
...BIcons
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ServerSet {
|
||||||
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const url = "http://" + server + target // TODO https
|
const url = "https://" + server + target // TODO https
|
||||||
return await fetch(url, {
|
return await fetch(url, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -59,7 +59,7 @@ class ServerSet {
|
||||||
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const url = "http://" + server + target // TODO https
|
const url = "https://" + server + target // TODO https
|
||||||
return await fetch(url, {
|
return await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -89,7 +89,7 @@ class ServerSet {
|
||||||
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const url = "http://" + server + target // TODO https
|
const url = "https://" + server + target // TODO https
|
||||||
return await fetch(url, {
|
return await fetch(url, {
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -119,7 +119,7 @@ class ServerSet {
|
||||||
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const url = "http://" + server + target // TODO https
|
const url = "https://" + server + target // TODO https
|
||||||
return await fetch(url, {
|
return await fetch(url, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -149,7 +149,7 @@ class ServerSet {
|
||||||
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
if (this.unreachable_neighbors.queryUnreachable(server)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const url = "http://" + server + target // TODO https
|
const url = "https://" + server + target // TODO https
|
||||||
return await fetch(url, {
|
return await fetch(url, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -266,7 +266,7 @@ export default createStore({
|
||||||
},
|
},
|
||||||
async pushFile({state, dispatch, getters}, {item_id, file}) {
|
async pushFile({state, dispatch, getters}, {item_id, file}) {
|
||||||
const servers = await dispatch('getHomeServers')
|
const servers = await dispatch('getHomeServers')
|
||||||
const data = await servers.post(getters.signAuth, '/api/item_files/'+item_id+'/', file)
|
const data = await servers.post(getters.signAuth, '/api/item_files/' + item_id + '/', file)
|
||||||
if (data.hash) {
|
if (data.hash) {
|
||||||
state.files.push(data)
|
state.files.push(data)
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue