MCPcopy Create free account
hub / github.com/apache/cloudstack / fetchGuiTheme

Function fetchGuiTheme

ui/src/utils/guiTheme.js:47–56  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

45}
46
47async function fetchGuiTheme (params) {
48 return await getAPI('listGuiThemes', params).then(response => {
49 if (response.listguithemesresponse.guiThemes) {
50 return response.listguithemesresponse.guiThemes[0]
51 }
52 }).catch(error => {
53 console.error('Error fetching GUI theme:', error)
54 return null
55 })
56}
57
58async function applyDynamicCustomization (response) {
59 let jsonConfig

Callers 1

applyCustomGuiThemeFunction · 0.85

Calls 2

getAPIFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected