diff --git a/modules-old/core/distribution/src/repository/cloud/portal/global-navigation.jag b/modules-old/core/distribution/src/repository/cloud/portal/global-navigation.jag index e4f22cc2..84e47f93 100644 --- a/modules-old/core/distribution/src/repository/cloud/portal/global-navigation.jag +++ b/modules-old/core/distribution/src/repository/cloud/portal/global-navigation.jag @@ -18,16 +18,23 @@ <% var query = request.getQueryString(); var dest = encodeURIComponent(originalURI + (query ? '?' + query : '')); +var configs = require('/configs/portal.js').config(); +var isCloud = configs.isCloud; %>
-
+ <% if (isCloud) { %> +
<% if (user) { %>
- - + <% } else { %> +
+ <% if (user) { %> + +
+ +
+ +
+
+ <% } else { %> + + <%= i18n.localize("login.label")%> + + <% } %> +
+ <% } %>
-
+ \ No newline at end of file diff --git a/modules-old/core/distribution/src/repository/cloud/portal/portal.js b/modules-old/core/distribution/src/repository/cloud/portal/portal.js index 0a7386a1..5b09f436 100644 --- a/modules-old/core/distribution/src/repository/cloud/portal/portal.js +++ b/modules-old/core/distribution/src/repository/cloud/portal/portal.js @@ -149,7 +149,7 @@ $(function () { var dashboard = findDashboard(id); dashboardEl.html(dashboardThumbnailHbs(dashboard)); }); - + portal.on('click', '.ues-view:not(.disable)', function(e) { e.preventDefault(); window.open($(this).attr('href'), '_blank'); @@ -185,20 +185,20 @@ $(function () { }); }; - $(document).ready(function () { - $('#cloud-menu-popover i.fw-tiles').popover({ - html: true, - trigger:'click', - title: function() { - return $("#popover-head").html(); - }, - content: function() { - return $("#popover-content").html(); - } - }); + if($('#cloud-menu-popover').length) { + $('#cloud-menu-popover i.fw-tiles').popover({ + html: true, + trigger:'click', + title: function() { + return $("#popover-head").html(); + }, + content: function() { + return $("#popover-content").html(); + } + }); + } }); - initUI(); loadDashboards(); }); \ No newline at end of file diff --git a/modules-old/core/distribution/src/repository/conf/log4j.properties b/modules-old/core/distribution/src/repository/conf/log4j.properties index a8a589ac..73a598e7 100644 --- a/modules-old/core/distribution/src/repository/conf/log4j.properties +++ b/modules-old/core/distribution/src/repository/conf/log4j.properties @@ -59,6 +59,8 @@ log4j.logger.de.hunsicker.jalopy.io=FATAL #log4j.logger.org.apache.synapse.transport.http.headers=DEBUG #log4j.logger.org.apache.synapse.transport.http.wire=DEBUG +# uncomment the following logs to see http calls headers and messages +#log4j.logger.feign=DEBUG #only WARN allowed for access loggers in http transport by default log4j.logger.org.apache.synapse.transport.http.access=WARN diff --git a/modules-old/core/distribution/src/repository/jaggeryapps/portal/configs/designer.json b/modules-old/core/distribution/src/repository/jaggeryapps/portal/configs/designer.json index 2f049839..86b79ac3 100644 --- a/modules-old/core/distribution/src/repository/jaggeryapps/portal/configs/designer.json +++ b/modules-old/core/distribution/src/repository/jaggeryapps/portal/configs/designer.json @@ -1,4 +1,5 @@ { + "isCloud" : false, "store": { "types": ["fs"] }, diff --git a/modules-old/core/p2-profile-gen/pom.xml b/modules-old/core/p2-profile-gen/pom.xml index 94e9286c..34a00626 100644 --- a/modules-old/core/p2-profile-gen/pom.xml +++ b/modules-old/core/p2-profile-gen/pom.xml @@ -162,7 +162,7 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature:${carbon.device.mgt.version} - org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature:${carbon.device.mgt.version} + org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature:${carbon.device.mgt.version} org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature:${carbon.device.mgt.version} @@ -959,7 +959,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -1909,7 +1909,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -2404,7 +2404,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -2617,7 +2617,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -3062,7 +3062,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -3291,7 +3291,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version} @@ -3717,7 +3717,7 @@ ${carbon.device.mgt.version} - org.wso2.carbon.device.mgt.extensions.push.notification.provider.gcm.feature.group + org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group ${carbon.device.mgt.version}