@@ 38,6 38,8 @@
</template>
<script>
+import { env } from '@/utils/env'
+
const TYPED_USES = {
local: ['login'],
email: [
@@ 63,6 65,10 @@ export default {
},
emits: ['update:modelValue'],
computed: {
+ hiddenForEnv() {
+ const saas = env.edition === 'saas'
+ return saas ? [] : ['service_alert', 'product_announcement']
+ },
uses: {
get() {
return this.modelValue
@@ 74,7 80,11 @@ export default {
},
methods: {
showValue(v) {
- return !this.hideValues.includes(v) && TYPED_USES[this.type].includes(v)
+ return (
+ !this.hideValues.includes(v) &&
+ !this.hiddenForEnv.includes(v) &&
+ TYPED_USES[this.type].includes(v)
+ )
},
},
}