providers/oauth2: fix component for Scope
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
43f37e4776
commit
c17eb00e3b
|
@ -25,6 +25,9 @@ class ProviderSerializer(ModelSerializer, MetaNameSerializer):
|
|||
|
||||
def get_component(self, obj: Provider): # pragma: no cover
|
||||
"""Get object component so that we know how to edit the object"""
|
||||
# pyright: reportGeneralTypeIssues=false
|
||||
if obj.__class__ == Provider:
|
||||
return ""
|
||||
return obj.component
|
||||
|
||||
class Meta:
|
||||
|
|
|
@ -112,7 +112,7 @@ class ScopeMapping(PropertyMapping):
|
|||
|
||||
@property
|
||||
def component(self) -> str:
|
||||
return "ak-service-connection-docker-form"
|
||||
return "ak-property-mapping-scope-form"
|
||||
|
||||
@property
|
||||
def serializer(self) -> Type[Serializer]:
|
||||
|
|
Reference in New Issue