-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version info in the left top of dashboard, like this: Sentinel 控制台 1.7.0 #1015
Add version info in the left top of dashboard, like this: Sentinel 控制台 1.7.0 #1015
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1015 +/- ##
============================================
- Coverage 42.72% 42.67% -0.06%
Complexity 1473 1473
============================================
Files 317 317
Lines 9280 9280
Branches 1267 1267
============================================
- Hits 3965 3960 -5
- Misses 4825 4828 +3
- Partials 490 492 +2
Continue to review full report at Codecov.
|
@@ -1,6 +1,13 @@ | |||
var app = angular.module('sentinelDashboardApp'); | |||
|
|||
app.service('AuthService', ['$http', function ($http) { | |||
this.version = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put this API to another service like VersionService
? It's actually not related to auth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the guidance, that is more clever, I fix it, please review 🌹
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
Now the /version
api has been used, and we can see the version number of dashboard intuitively.
Resolves #728 |
Describe what this PR does / why we need it
#728
look like:
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews