1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 19:40:08 +02:00

👌 Domain column now sorts based on name (#259)

This commit is contained in:
2023-09-01 01:09:59 +02:00
parent f9acbd34d0
commit aebfc9dd09
2 changed files with 2 additions and 2 deletions

View File

@ -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() }

View File

@ -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)