Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openvpn-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cloudron
openvpn-app
Commits
aac4cf62
Commit
aac4cf62
authored
Sep 08, 2020
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save and close the settings
parent
19d136e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
frontend/index.html
frontend/index.html
+2
-1
frontend/js/app.js
frontend/js/app.js
+6
-1
No files found.
frontend/index.html
View file @
aac4cf62
...
...
@@ -21,7 +21,7 @@
<header>
<h1><span
class=
"hidden-xs-only"
>
Cloudron OpenVPN
</span></h1>
<el-button
id=
"openSettingsButton"
v-show=
"user && user.isAdmin"
@
click=
"openSettings()"
icon=
"el-icon-setting"
>
Settings
</el-button>
<el-button
id=
"openSettingsButton"
v-show=
"user && user.isAdmin
&& view !== 'settings'
"
@
click=
"openSettings()"
icon=
"el-icon-setting"
>
Settings
</el-button>
<el-button
id=
"logoutButton"
v-show=
"user"
@
click=
"logout()"
>
Logout
</el-button>
</header>
...
...
@@ -54,6 +54,7 @@
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSettingsSave()"
>
Save
</el-button>
<el-button
@
click=
"onSettingsClose()"
>
Close
</el-button>
</el-form-item>
</el-form>
</div>
...
...
frontend/js/app.js
View file @
aac4cf62
...
...
@@ -222,11 +222,16 @@
if
(
error
)
return
console
.
error
(
error
)
this
.
refreshSettings
()
this
.
view
=
VIEWS
.
DEVICES
this
.
$message
.
success
(
'
Settings saved
'
)
})
},
onSettingsClose
()
{
this
.
view
=
VIEWS
.
DEVICES
},
openSettings
()
{
this
.
view
=
VIEWS
.
SETTINGS
this
.
refreshSettings
()
}
}
...
...
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