We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06be9a commit 21631c0Copy full SHA for 21631c0
Sources/App/Views/Manage/Portal+View.swift
@@ -3,8 +3,19 @@ import Foundation
3
4
enum Portal {
5
6
+ struct Model {
7
+ var errorMessage: String = ""
8
+ }
9
+
10
class View: PublicPage {
11
12
+ let model: Model
13
14
+ init(path: String, model: Model) {
15
+ self.model = model
16
+ super.init(path: path)
17
18
19
override func pageTitle() -> String? {
20
"Portal"
21
}
@@ -13,7 +24,8 @@ enum Portal {
24
.div(
25
.h2("Portal"),
26
.logoutButton(),
- .deleteButton()
27
+ .deleteButton(),
28
+ .text(model.errorMessage)
29
)
30
31
0 commit comments