mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 08:16:07 +00:00
[lib icon] added icons for 'preview' & 'cloud-edit' libraries
This commit is contained in:
@@ -239,13 +239,26 @@ export const Utils = {
|
||||
getLibIconUrl: function(repo, isBig) {
|
||||
let permission = repo.permission || repo.share_permission; //Compatible with regular repo and repo shared
|
||||
let size = Utils.isHiDPI() ? 48 : 24;
|
||||
let status = repo.status;
|
||||
size = isBig ? 256 : size;
|
||||
|
||||
let icon_name = 'lib.png';
|
||||
if (repo.encrypted) {
|
||||
icon_name = 'lib-encrypted.png';
|
||||
}
|
||||
if (permission === 'r' || permission === 'perview' || status === 'read-only') {
|
||||
switch (permission) {
|
||||
case 'r':
|
||||
icon_name = 'lib-readonly.png';
|
||||
break;
|
||||
case 'preview':
|
||||
icon_name = 'lib-cloud-preview.png';
|
||||
break;
|
||||
case 'cloud-edit':
|
||||
icon_name = 'lib-cloud-preview-edit.png';
|
||||
break;
|
||||
}
|
||||
|
||||
// must be the last
|
||||
if (repo.status == 'read-only') {
|
||||
icon_name = 'lib-readonly.png';
|
||||
}
|
||||
|
||||
|
BIN
media/img/lib/24/lib-cloud-preview-edit.png
Normal file
BIN
media/img/lib/24/lib-cloud-preview-edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 478 B |
BIN
media/img/lib/24/lib-cloud-preview.png
Normal file
BIN
media/img/lib/24/lib-cloud-preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 454 B |
BIN
media/img/lib/256/lib-cloud-preview-edit.png
Normal file
BIN
media/img/lib/256/lib-cloud-preview-edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
media/img/lib/256/lib-cloud-preview.png
Normal file
BIN
media/img/lib/256/lib-cloud-preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
media/img/lib/48/lib-cloud-preview-edit.png
Normal file
BIN
media/img/lib/48/lib-cloud-preview-edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
media/img/lib/48/lib-cloud-preview.png
Normal file
BIN
media/img/lib/48/lib-cloud-preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user