nicer tags selection

This commit is contained in:
j3d1 2023-10-28 04:35:45 +02:00
parent b45841fff8
commit 0d4012b4c6
4 changed files with 8 additions and 11 deletions

View file

@ -20,6 +20,7 @@
</li>
</ul>
</div>
<!--button class="btn btn-outline-secondary form-control-lg" type="button" @click="chooseOption">Add</button-->
</div>
</template>
@ -133,6 +134,7 @@ export default {
return this.value;
},
set(value) {
console.log("set", value);
}
}
},

View file

@ -25,11 +25,6 @@ import BadgeSelectField from "@/components/BadgeSelectField.vue";
export default {
name: "TagField",
data() {
return {
tag: ""
}
},
components: {
BadgeSelectField,
...BIcons

View file

@ -31,7 +31,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) {
continue
}
const url = "http://" + server + target // TODO https
const url = "https://" + server + target // TODO https
return await fetch(url, {
method: 'GET',
headers: {
@ -59,7 +59,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) {
continue
}
const url = "http://" + server + target // TODO https
const url = "https://" + server + target // TODO https
return await fetch(url, {
method: 'POST',
headers: {
@ -89,7 +89,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) {
continue
}
const url = "http://" + server + target // TODO https
const url = "https://" + server + target // TODO https
return await fetch(url, {
method: 'PATCH',
headers: {
@ -119,7 +119,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) {
continue
}
const url = "http://" + server + target // TODO https
const url = "https://" + server + target // TODO https
return await fetch(url, {
method: 'PUT',
headers: {
@ -149,7 +149,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) {
continue
}
const url = "http://" + server + target // TODO https
const url = "https://" + server + target // TODO https
return await fetch(url, {
method: 'DELETE',
headers: {

View file

@ -266,7 +266,7 @@ export default createStore({
},
async pushFile({state, dispatch, getters}, {item_id, file}) {
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) {
state.files.push(data)
return data