File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ This service displays info about the total number of disk passed and failed S.M.
650
650
# # SFTPGo
651
651
652
652
This service displays a version string instead of a subtitle.
653
- And this service display the number of active connections
653
+ And this service display the number of active connections is hidden on small screen.
654
654
The indicator shows SFTPGo is online, offline. Example configuration :
655
655
656
656
` ` ` yaml
Original file line number Diff line number Diff line change 8
8
</template >
9
9
<template v-else >
10
10
<span v-if =" versionstring" >Version {{ versionstring }}</span >
11
- <span v-if =" activeConnections !== null" >
11
+ <span v-if =" activeConnections !== null && !this.showUpdateAvailable " >
12
12
– Active connections: {{ activeConnections }}
13
13
</span >
14
14
</template >
@@ -40,11 +40,17 @@ export default {
40
40
status : function () {
41
41
return this .fetchOk ? " online" : " offline" ;
42
42
},
43
+ showUpdateAvailable : function () {
44
+ return this .isSmallScreenMethod ();
45
+ },
43
46
},
44
47
created () {
45
48
this .fetchStatus ();
46
49
},
47
50
methods: {
51
+ isSmallScreenMethod : function () {
52
+ return window .matchMedia (" screen and (max-width: 1023px)" ).matches ;
53
+ },
48
54
fetchStatus : async function () {
49
55
let headers = {};
50
56
if (this .item .sftpgo_api_key ) {
You can’t perform that action at this time.
0 commit comments