mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-31 03:12:45 +00:00
22 lines
614 B
JavaScript
22 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)
|
|
)
|
|
},
|
|
},
|
|
}
|