Fixed a typo in the method name in CssAndJavaScriptLibraries in the Mia core application.
This commit is contained in:
parent
2b808b236a
commit
edf3d99c81
@ -547,7 +547,7 @@ class CssAndJavaScriptLibraries:
|
|||||||
|
|
||||||
def css(self) -> List[str]:
|
def css(self) -> List[str]:
|
||||||
"""Returns the stylesheet files to use."""
|
"""Returns the stylesheet files to use."""
|
||||||
use: Dict[str, bool] = self._solve_use_depencies()
|
use: Dict[str, bool] = self._solve_use_dependencies()
|
||||||
css = []
|
css = []
|
||||||
for lib in [x for x in self.AVAILABLE_LIBS if use[x]]:
|
for lib in [x for x in self.AVAILABLE_LIBS if use[x]]:
|
||||||
if lib == "i18n":
|
if lib == "i18n":
|
||||||
@ -564,7 +564,7 @@ class CssAndJavaScriptLibraries:
|
|||||||
|
|
||||||
def js(self) -> List[str]:
|
def js(self) -> List[str]:
|
||||||
"""Returns the JavaScript files to use."""
|
"""Returns the JavaScript files to use."""
|
||||||
use: Dict[str, bool] = self._solve_use_depencies()
|
use: Dict[str, bool] = self._solve_use_dependencies()
|
||||||
js = []
|
js = []
|
||||||
for lib in [x for x in self.AVAILABLE_LIBS if use[x]]:
|
for lib in [x for x in self.AVAILABLE_LIBS if use[x]]:
|
||||||
if lib == "i18n":
|
if lib == "i18n":
|
||||||
@ -580,7 +580,7 @@ class CssAndJavaScriptLibraries:
|
|||||||
js = js + CDN_LIBRARIES[lib]["js"]
|
js = js + CDN_LIBRARIES[lib]["js"]
|
||||||
return js + self._js
|
return js + self._js
|
||||||
|
|
||||||
def _solve_use_depencies(self) -> Dict[str, bool]:
|
def _solve_use_dependencies(self) -> Dict[str, bool]:
|
||||||
"""Solves and returns the library dependencies."""
|
"""Solves and returns the library dependencies."""
|
||||||
use: Dict[str, bool] = {x: self._use[x] for x in self._use}
|
use: Dict[str, bool] = {x: self._use[x] for x in self._use}
|
||||||
if use["period-chooser"]:
|
if use["period-chooser"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user