Display icon in footer when an update is available
This commit is contained in:
parent
0bdac63953
commit
efc421c0a6
@ -52,12 +52,22 @@
|
|||||||
aria-controls="settings"
|
aria-controls="settings"
|
||||||
:aria-selected="$route.name === 'Settings'"
|
:aria-selected="$route.name === 'Settings'"
|
||||||
/></span>
|
/></span>
|
||||||
<span class="tooltipped tooltipped-n tooltipped-no-touch" aria-label="Help"
|
<span
|
||||||
|
class="tooltipped tooltipped-n tooltipped-no-touch"
|
||||||
|
:aria-label="
|
||||||
|
$store.state.serverConfiguration.isUpdateAvailable
|
||||||
|
? 'Help\n(update available)'
|
||||||
|
: 'Help'
|
||||||
|
"
|
||||||
><router-link
|
><router-link
|
||||||
to="/help"
|
to="/help"
|
||||||
tag="button"
|
tag="button"
|
||||||
active-class="active"
|
active-class="active"
|
||||||
:class="['icon', 'help']"
|
:class="[
|
||||||
|
'icon',
|
||||||
|
'help',
|
||||||
|
{notified: $store.state.serverConfiguration.isUpdateAvailable},
|
||||||
|
]"
|
||||||
aria-label="Help"
|
aria-label="Help"
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-controls="help"
|
aria-controls="help"
|
||||||
|
@ -906,6 +906,18 @@ background on hover (unless active) */
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#footer .help.notified::after {
|
||||||
|
content: "\f021";
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
font-size: 10px;
|
||||||
|
border-radius: 50%;
|
||||||
|
color: var(--link-color);
|
||||||
|
background: var(--body-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
.window li,
|
.window li,
|
||||||
.window p,
|
.window p,
|
||||||
.window label,
|
.window label,
|
||||||
|
@ -715,6 +715,7 @@ function getClientConfiguration() {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.isUpdateAvailable = changelog.isUpdateAvailable;
|
||||||
config.applicationServerKey = manager.webPush.vapidKeys.publicKey;
|
config.applicationServerKey = manager.webPush.vapidKeys.publicKey;
|
||||||
config.version = pkg.version;
|
config.version = pkg.version;
|
||||||
config.gitCommit = Helper.getGitCommit();
|
config.gitCommit = Helper.getGitCommit();
|
||||||
|
Loading…
Reference in New Issue
Block a user