diff --git a/src_assets/common/assets/web/Checkbox.vue b/src_assets/common/assets/web/Checkbox.vue index b94446d30a6..03da60d08ae 100644 --- a/src_assets/common/assets/web/Checkbox.vue +++ b/src_assets/common/assets/web/Checkbox.vue @@ -22,6 +22,10 @@ const props = defineProps({ type: String, default: "missing-prefix" }, + inverseValues: { + type: Boolean, + default: false, + }, default: { type: undefined, default: null, @@ -79,7 +83,9 @@ const checkboxValues = (() => { return ["true", "false"]; })(); - return { truthy: mappedValues[0], falsy: mappedValues[1] }; + const truthyIndex = props.inverseValues ? 1 : 0; + const falsyIndex = props.inverseValues ? 0 : 1; + return { truthy: mappedValues[truthyIndex], falsy: mappedValues[falsyIndex] }; })(); const parsedDefaultPropValue = (() => { const boolValues = mapToBoolRepresentation(props.default); diff --git a/src_assets/common/assets/web/apps.html b/src_assets/common/assets/web/apps.html index a0237aab859..de59d30e6ca 100644 --- a/src_assets/common/assets/web/apps.html +++ b/src_assets/common/assets/web/apps.html @@ -122,6 +122,7 @@