mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
23 lines
614 B
JavaScript
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)
|
|
)
|
|
},
|
|
},
|
|
}
|