diff --git a/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/pages/asset.jag b/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/pages/asset.jag index 3460bb58e..feced0d62 100644 --- a/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/pages/asset.jag +++ b/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/pages/asset.jag @@ -91,9 +91,15 @@ require('/modules/store.js').exec(function (ctx) { var rxtAttributes = utility.getRXTAttributes(tenantId, type); var devices = []; - if(user != null && isNotCatalog && isDeviceSubscriptionEnabled){ - devices = parse(String(devicesClass.getDevicesList(stringify(user), user.tenantId, "user", [user.username], asset.attributes.overview_platform))); - } + var isDeviceAvailable = false; + + if (user != null && isNotCatalog && isDeviceSubscriptionEnabled) { + devices = parse(String(devicesClass.getDevicesList(stringify(user), user.tenantId, "user", [user.username], + asset.attributes.overview_platform))); + if (devices.length > 0) { + isDeviceAvailable = true; + } + } var headerData = site.header(tenantId, { sso: sso, @@ -119,6 +125,7 @@ require('/modules/store.js').exec(function (ctx) { user: user, sso: sso, devices: devices, + isDeviceAvailable : isDeviceAvailable, isEnterpriseInstallEnabled: isEnterpriseInstallEnabled, isDeviceSubscriptionEnabled : isDeviceSubscriptionEnabled, isDirectDownloadEnabled :isDirectDownloadEnabled, diff --git a/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/themes/store/partials/page-content-app-details.hbs b/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/themes/store/partials/page-content-app-details.hbs index 6ae910bca..d6176234c 100644 --- a/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/themes/store/partials/page-content-app-details.hbs +++ b/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/themes/store/partials/page-content-app-details.hbs @@ -43,51 +43,68 @@ {{!--buttons --}}