You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/05/31 10:36:51 UTC
[cloudstack] branch master updated: ui: Removed download icon when
iso is not extractable for users (#5028)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new 065ee9e ui: Removed download icon when iso is not extractable for users (#5028)
065ee9e is described below
commit 065ee9ecd3483074ce82b3ee36577ea6a2e53217
Author: Spaceman1984 <49...@users.noreply.github.com>
AuthorDate: Mon May 31 12:36:35 2021 +0200
ui: Removed download icon when iso is not extractable for users (#5028)
When an ISO is not marked as extractable, the download button should not be displayed in the UI.
Fixes: #4535
---
ui/src/config/section/image.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/config/section/image.js b/ui/src/config/section/image.js
index 6f08b9e..ce45ccc 100644
--- a/ui/src/config/section/image.js
+++ b/ui/src/config/section/image.js
@@ -268,7 +268,7 @@ export default {
dataView: true,
show: (record, store) => {
return (['Admin'].includes(store.userInfo.roletype) || // If admin or owner or belongs to current project
- (record.domainid === store.userInfo.domainid && record.account === store.userInfo.account) ||
+ (record.domainid === store.userInfo.domainid && record.account === store.userInfo.account && record.isextractable) ||
(record.domainid === store.userInfo.domainid && record.projectid && store.project && store.project.id && record.projectid === store.project.id)) &&
!(record.account === 'system' && record.domainid === 1) &&
record.isready