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")
|
||||
|
||||
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 {
|
||||
ColoredButton(
|
||||
icon: .squareAndArrowDown,
|
||||
text: "Convert to internal file",
|
||||
action: replaceFile)
|
||||
} else {
|
||||
ColoredButton(icon: .folder, text: "Show in folder", action: showFileInFinder)
|
||||
ColoredButton(icon: .arrowClockwise, text: "Mark file as changed", action: markFileAsChanged)
|
||||
ColoredButton(
|
||||
icon: .arrowLeftArrowRight,
|
||||
text: "Replace file",
|
||||
|
@ -57,7 +57,7 @@ struct InsertableRoute: View, InsertableCommandView {
|
||||
if let mapTitle {
|
||||
result.append("\(RouteBlock.Key.mapTitle.rawValue): \(mapTitle)")
|
||||
}
|
||||
result.append("\n```")
|
||||
result.append("```")
|
||||
return result.joined(separator: "\n")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user