Create nice animation when scanning nfc cards

This commit is contained in:
2024-11-14 11:26:49 +01:00
committed by Bartuccio Antoine
parent fce6c3d29c
commit 9991f5dc64
4 changed files with 43 additions and 4 deletions

View File

@ -76,7 +76,8 @@ class NFCTextInput(TextInput):
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
context["statics"] = {
"js": staticfiles_storage.url("webpack/core/components/nfc-input-index.ts")
"js": staticfiles_storage.url("webpack/core/components/nfc-input-index.ts"),
"css": staticfiles_storage.url("core/components/nfc-input.scss"),
}
return context