From 349deb24ad3a330d6879e8452a4df1263ab44596 Mon Sep 17 00:00:00 2001 From: chuanlin2018 Date: Tue, 12 Mar 2024 13:28:04 -0400 Subject: [PATCH 1/2] Hide download button for folders --- .../data-files/data-files.component.html | 62 +++++++++++-------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/angular/src/app/landing/data-files/data-files.component.html b/angular/src/app/landing/data-files/data-files.component.html index 3af2a7eb..797b676c 100644 --- a/angular/src/app/landing/data-files/data-files.component.html +++ b/angular/src/app/landing/data-files/data-files.component.html @@ -26,8 +26,8 @@ Files + data-toggle="tooltip" title="Download all files" + [ngStyle]="{'color':getDownloadAllBtnColor(),'cursor':'pointer'}"> + style="display:none"> - -
- - -
@@ -80,7 +86,8 @@ - + @@ -94,8 +101,7 @@ - + @@ -110,9 +116,8 @@ - - + + @@ -202,12 +210,12 @@ - -
- - Nothing found... -
- + +
+ + Nothing found... +
+
From 5430b7bd0c74048e5487fb65b72f8128057240a8 Mon Sep 17 00:00:00 2001 From: chuanlin2018 Date: Tue, 12 Mar 2024 14:19:39 -0400 Subject: [PATCH 2/2] Changed column name from Status to Access. --- angular/src/app/landing/data-files/data-files.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/angular/src/app/landing/data-files/data-files.component.ts b/angular/src/app/landing/data-files/data-files.component.ts index 6b6662b1..4e7847a1 100644 --- a/angular/src/app/landing/data-files/data-files.component.ts +++ b/angular/src/app/landing/data-files/data-files.component.ts @@ -170,7 +170,7 @@ export class DataFilesComponent implements OnInit, OnChanges { { field: 'name', header: 'Name', width: '60%' }, { field: 'mediaType', header: 'File Type', width: 'auto' }, { field: 'size', header: 'Size', width: 'auto' }, - { field: 'download', header: "Status", width: 'auto' }]; + { field: 'download', header: "Access", width: 'auto' }]; if (typeof (window) !== 'undefined') { window.onresize = (e) => { @@ -269,7 +269,6 @@ export class DataFilesComponent implements OnInit, OnChanges { if(this.record['accessLevel'] === 'restricted public') { this.checkAccessPageType(); - this.cols[3]['header'] = "Access"; } this.buildTree();