1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/enterprise/web-frontend/modules/baserow_enterprise/mixins/authProviderItemMixin.js
2022-12-12 09:09:32 +00:00

23 lines
614 B
JavaScript

export default {
methods: {
canBeEdited(authProviderType) {
return (
this.$registry
.get('authProvider', authProviderType)
.getAdminSettingsFormComponent() != null
)
},
canBeDeleted(authProviderType) {
const getType = this.$store.getters['authProviderAdmin/getType']
const providerTypeData = getType(authProviderType)
return providerTypeData.canDeleteExistingProviders
},
hasContextMenu(authProviderType) {
return (
this.canBeEdited(authProviderType) ||
this.canBeDeleted(authProviderType)
)
},
},
}