* Added snackbar with progress info on new/edit, so if loading of for example, provider information, is slow, the user knows that "something is going on

* Small type check for user interface
This commit is contained in:
Adolfo Gómez García 2019-10-20 12:29:07 +02:00
parent 4c9ad55d99
commit 7aee4efb15
4 changed files with 9 additions and 5 deletions

View File

@ -676,7 +676,7 @@ class gui:
gui.callbacks[fills['callbackName']] = fnc gui.callbacks[fills['callbackName']] = fnc
self._type(gui.InputField.CHOICE_TYPE) self._type(gui.InputField.CHOICE_TYPE)
def setValues(self, values): def setValues(self, values: typing.List[typing.Any]):
""" """
Set the values for this choice field Set the values for this choice field
""" """
@ -690,7 +690,7 @@ class gui:
self._type(gui.InputField.IMAGECHOICE_TYPE) self._type(gui.InputField.IMAGECHOICE_TYPE)
def setValues(self, values): def setValues(self, values: typing.List[typing.Any]):
""" """
Set the values for this choice field Set the values for this choice field
""" """
@ -736,7 +736,7 @@ class gui:
self._data['rows'] = options.get('rows', -1) self._data['rows'] = options.get('rows', -1)
self._type(gui.InputField.MULTI_CHOICE_TYPE) self._type(gui.InputField.MULTI_CHOICE_TYPE)
def setValues(self, values): def setValues(self, values: typing.List[typing.Any]) -> None:
""" """
Set the values for this multi choice field Set the values for this multi choice field
""" """

File diff suppressed because one or more lines are too long

View File

@ -55,6 +55,8 @@ gettext("Yes");
gettext("No"); gettext("No");
gettext("(hidden)"); gettext("(hidden)");
gettext("Selected items :"); gettext("Selected items :");
gettext("Loading data...");
gettext("dismiss");
gettext("Error"); gettext("Error");
gettext("Please, fill in require fields: "); gettext("Please, fill in require fields: ");
gettext("Testing..."); gettext("Testing...");
@ -65,6 +67,8 @@ gettext("Test passed successfully");
gettext("dismiss"); gettext("dismiss");
gettext("Successfully saved"); gettext("Successfully saved");
gettext("dismiss"); gettext("dismiss");
gettext("Loading data...");
gettext("dismiss");
gettext("Are you sure do you want to delete the following items?"); gettext("Are you sure do you want to delete the following items?");
gettext("Deletion finished"); gettext("Deletion finished");
gettext("dismiss"); gettext("dismiss");

View File

@ -92,6 +92,6 @@
</svg> </svg>
</div> </div>
</uds-root> </uds-root>
<script src="/uds/res/admin/runtime.js?stamp=1571053414" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1571053414" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1571053414" defer></script><script src="/uds/res/admin/main.js?stamp=1571053414" defer></script></body> <script src="/uds/res/admin/runtime.js?stamp=1571567073" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1571567073" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1571567073" defer></script><script src="/uds/res/admin/main.js?stamp=1571567073" defer></script></body>
</html> </html>