From 3d41c92e8c2423b5ec3fc0eb3d2d4df8316c3f96 Mon Sep 17 00:00:00 2001 From: Robin Karlsson Date: Wed, 27 Sep 2023 12:47:59 +0300 Subject: [PATCH] Add icons for remote favorite paths --- apps/dashboard/app/apps/ood_app.rb | 2 +- apps/dashboard/app/views/files/_favorites.html.erb | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/app/apps/ood_app.rb b/apps/dashboard/app/apps/ood_app.rb index c2622fc9dc..2492cac1c9 100644 --- a/apps/dashboard/app/apps/ood_app.rb +++ b/apps/dashboard/app/apps/ood_app.rb @@ -99,7 +99,7 @@ def links subtitle: favorite_path.title ? favorite_path.path.to_s : nil, description: manifest.description, url: OodAppkit::Urls::Files.new(base_url: url).url(path: favorite_path.path.to_s, fs: favorite_path.filesystem), - icon_uri: "fas://folder", + icon_uri: favorite_path.remote? ? "fas://cloud" : "fas://folder", caption: caption, new_tab: open_in_new_window?, tile: tile diff --git a/apps/dashboard/app/views/files/_favorites.html.erb b/apps/dashboard/app/views/files/_favorites.html.erb index 9fe71344e2..4d286f920f 100755 --- a/apps/dashboard/app/views/files/_favorites.html.erb +++ b/apps/dashboard/app/views/files/_favorites.html.erb @@ -5,7 +5,12 @@