|
@@ -35,14 +35,7 @@
|
35
|
35
|
|
36
|
36
|
<script type='text/javascript'>
|
37
|
37
|
let prevSelectedApp = {name: ''} // default value
|
38
|
|
- /*
|
39
|
|
- app : {
|
40
|
|
- loggedUser: {id, isLoggedIn, username, firstname, lastname, email, avatar}
|
41
|
|
- workspace: {id, title},
|
42
|
|
- appConfig: {name, componentLeft, componentRight, customClass, icon},
|
43
|
|
- content: {id, title, type, status}
|
44
|
|
- }
|
45
|
|
- */
|
|
38
|
+
|
46
|
39
|
GLOBAL_renderApp = app => {
|
47
|
40
|
const selectedApp = (() => {
|
48
|
41
|
switch (app.config.name) {
|
|
@@ -54,7 +47,7 @@
|
54
|
47
|
})()
|
55
|
48
|
|
56
|
49
|
if (selectedApp.isRendered) {
|
57
|
|
- GLOBAL_dispatchEvent(`${app.appConfig.name}_showApp`, app)
|
|
50
|
+ GLOBAL_dispatchEvent(`${app.config.name}_showApp`, app)
|
58
|
51
|
} else {
|
59
|
52
|
selectedApp.renderApp(app)
|
60
|
53
|
selectedApp.isRendered = true
|