Enable more acl options
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
</FormGroup>
|
||||
|
||||
<PortBindings v-model:tcp-ports="tcpPorts" v-model:udp-ports="udpPorts" :error="formError"/>
|
||||
<AccessControl v-model="accessRestriction"/>
|
||||
<AccessControl v-model="accessRestriction" :manifest="manifest"/>
|
||||
|
||||
<Button @click="submit" icon="fa-solid fa-circle-down" :disabled="!formValid" :loading="busy">Install {{ manifest.title }}</Button>
|
||||
</fieldset>
|
||||
@@ -108,7 +108,11 @@ const formValid = computed(() => {
|
||||
|
||||
// form data
|
||||
const location = ref('');
|
||||
const accessRestriction = ref(null);
|
||||
// accessRestriction:
|
||||
// object = SSO with user groups
|
||||
// true = SSO all
|
||||
// false = NOSSO
|
||||
const accessRestriction = ref(true);
|
||||
const domain = ref({});
|
||||
const tcpPorts = ref({});
|
||||
const udpPorts = ref({});
|
||||
@@ -119,10 +123,10 @@ async function submit() {
|
||||
const config = {
|
||||
subdomain: location.value,
|
||||
domain: domain.value.domain,
|
||||
accessRestriction: accessRestriction.value,
|
||||
accessRestriction: typeof accessRestriction.value === 'object' ? accessRestriction.value : null,
|
||||
};
|
||||
|
||||
if (manifest.value.optionalSso) config.sso =!!accessRestriction.value;
|
||||
if (manifest.value.optionalSso) config.sso = accessRestriction.value;
|
||||
|
||||
const finalPorts = {};
|
||||
for (const p in tcpPorts.value) {
|
||||
|
||||
Reference in New Issue
Block a user