applink: do not send label when not set

This commit is contained in:
Girish Ramakrishnan
2026-02-04 14:53:50 +01:00
parent c4055271a8
commit 9b5fb9ae8f
+3 -2
View File
@@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
const i18n = useI18n();
const t = i18n.t;
import { computed, ref, useTemplateRef } from 'vue';
import { ref, useTemplateRef } from 'vue';
import { Dialog, FormGroup, InputDialog, MultiSelect, Radiobutton, TagInput, TextInput } from '@cloudron/pankow';
import { API_ORIGIN } from '../constants.js';
import { getDataURLFromFile } from '../utils.js';
@@ -64,11 +64,12 @@ async function onSubmit() {
busy.value = true;
const data = {
label: label.value,
upstreamUri: upstreamUri.value,
tags: tags.value,
};
if (label.value) data.label = label.value;
data.accessRestriction = null;
if (accessRestrictionOption.value === 'groups') {
data.accessRestriction = { users: [], groups: [] };