Fix route button, improve file details
This commit is contained in:
parent
afa2e0b844
commit
ee2993318f
@ -51,14 +51,14 @@ struct FileDetailView: View {
|
|||||||
text: "A file that can be used in a post or page")
|
text: "A file that can be used in a post or page")
|
||||||
|
|
||||||
GenericPropertyView(title: "Actions") {
|
GenericPropertyView(title: "Actions") {
|
||||||
ColoredButton(icon: .folder, text: "Show in folder", action: showFileInFinder)
|
|
||||||
ColoredButton(icon: .arrowClockwise, text: "Mark file as changed", action: markFileAsChanged)
|
|
||||||
if file.isExternallyStored {
|
if file.isExternallyStored {
|
||||||
ColoredButton(
|
ColoredButton(
|
||||||
icon: .squareAndArrowDown,
|
icon: .squareAndArrowDown,
|
||||||
text: "Convert to internal file",
|
text: "Convert to internal file",
|
||||||
action: replaceFile)
|
action: replaceFile)
|
||||||
} else {
|
} else {
|
||||||
|
ColoredButton(icon: .folder, text: "Show in folder", action: showFileInFinder)
|
||||||
|
ColoredButton(icon: .arrowClockwise, text: "Mark file as changed", action: markFileAsChanged)
|
||||||
ColoredButton(
|
ColoredButton(
|
||||||
icon: .arrowLeftArrowRight,
|
icon: .arrowLeftArrowRight,
|
||||||
text: "Replace file",
|
text: "Replace file",
|
||||||
|
@ -57,7 +57,7 @@ struct InsertableRoute: View, InsertableCommandView {
|
|||||||
if let mapTitle {
|
if let mapTitle {
|
||||||
result.append("\(RouteBlock.Key.mapTitle.rawValue): \(mapTitle)")
|
result.append("\(RouteBlock.Key.mapTitle.rawValue): \(mapTitle)")
|
||||||
}
|
}
|
||||||
result.append("\n```")
|
result.append("```")
|
||||||
return result.joined(separator: "\n")
|
return result.joined(separator: "\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user