From aebfc9dd098e3d6918de7054d3b88232fdddf320 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Fri, 1 Sep 2023 01:09:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Domain=20column=20now=20sorts=20?= =?UTF-8?q?based=20on=20name=20(#259)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Modules/Domain List/UI/DomainListVC.swift | 2 +- .../Modules/PHP Version Manager/UI/PhpVersionManagerView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpmon/Modules/Domain List/UI/DomainListVC.swift b/phpmon/Modules/Domain List/UI/DomainListVC.swift index a119710..ac9623c 100644 --- a/phpmon/Modules/Domain List/UI/DomainListVC.swift +++ b/phpmon/Modules/Domain List/UI/DomainListVC.swift @@ -188,7 +188,7 @@ class DomainListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource switch descriptor.key { case "Secure": sorted = self.domains.sorted { $0.getListableSecured() && !$1.getListableSecured() } - case "Domain": sorted = self.domains.sorted { $0.getListableAbsolutePath() < $1.getListableAbsolutePath() } + case "Domain": sorted = self.domains.sorted { $0.getListableName() < $1.getListableName() } case "PHP": sorted = self.domains.sorted { $0.getListablePhpVersion() < $1.getListablePhpVersion() } case "Kind": sorted = self.domains.sorted { $0.getListableKind() < $1.getListableKind() } case "Type": sorted = self.domains.sorted { $0.getListableType() < $1.getListableType() } diff --git a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift index eb72ea2..eeef83b 100644 --- a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift +++ b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift @@ -150,7 +150,7 @@ struct PhpVersionManagerView: View { .font(.system(size: 9)) .padding(.horizontal, 5) .padding(.vertical, 1) - .background(Color.orange) + .background(Color.appPrimary) .foregroundColor(Color.white) .clipShape(Capsule()) .fixedSize(horizontal: true, vertical: true)