Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
plasma-angelfish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rinigus Saar
plasma-angelfish
Commits
787c2289
Verified
Commit
787c2289
authored
Mar 30, 2020
by
Jonah Brüchert
🌳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ErrorHandler: Add retry button
parent
7255fd14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
angelfish-webapp/contents/ui/webapp.qml
angelfish-webapp/contents/ui/webapp.qml
+1
-0
src/contents/ui/ErrorHandler.qml
src/contents/ui/ErrorHandler.qml
+8
-0
src/contents/ui/webbrowser.qml
src/contents/ui/webbrowser.qml
+2
-0
No files found.
angelfish-webapp/contents/ui/webapp.qml
View file @
787c2289
...
@@ -70,6 +70,7 @@ Kirigami.ApplicationWindow {
...
@@ -70,6 +70,7 @@ Kirigami.ApplicationWindow {
anchors.fill
:
parent
anchors.fill
:
parent
visible
:
webView
.
errorCode
!==
""
visible
:
webView
.
errorCode
!==
""
onRefreshRequested
:
webView
.
reload
()
}
}
Loader
{
Loader
{
...
...
src/contents/ui/ErrorHandler.qml
View file @
787c2289
...
@@ -29,6 +29,8 @@ import org.kde.kirigami 2.0 as Kirigami
...
@@ -29,6 +29,8 @@ import org.kde.kirigami 2.0 as Kirigami
Item
{
Item
{
id
:
errorHandler
id
:
errorHandler
signal
refreshRequested
property
string
errorCode
:
""
property
string
errorCode
:
""
property
alias
errorString
:
errorDescription
.
text
property
alias
errorString
:
errorDescription
.
text
...
@@ -58,5 +60,11 @@ Item {
...
@@ -58,5 +60,11 @@ Item {
Item
{
Item
{
Layout.fillHeight
:
true
Layout.fillHeight
:
true
}
}
Controls.ToolButton
{
Layout.alignment
:
Qt
.
AlignHCenter
text
:
i18n
(
"
Retry
"
)
icon.name
:
"
view-refresh
"
onClicked
:
errorHandler
.
refreshRequested
()
}
}
}
}
}
src/contents/ui/webbrowser.qml
View file @
787c2289
...
@@ -175,6 +175,8 @@ Kirigami.ApplicationWindow {
...
@@ -175,6 +175,8 @@ Kirigami.ApplicationWindow {
bottom
:
navigation
.
top
bottom
:
navigation
.
top
}
}
visible
:
currentWebView
.
errorCode
!==
""
visible
:
currentWebView
.
errorCode
!==
""
onRefreshRequested
:
currentWebView
.
reload
()
}
}
Loader
{
Loader
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment