providers/oauth2: fix component for Scope

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-03 12:08:21 +02:00
parent 43f37e4776
commit c17eb00e3b
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -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]: