mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
If all updates are applied, show Fully Updated. Fixes #101
Also include code for a more smooth visualization of the data
This commit is contained in:
@@ -78,6 +78,13 @@ $(function () {
|
||||
UpdatesChart.on('draw', function(data){
|
||||
if (data.index) { return; }
|
||||
chart.find('.numeric span').text(Math.round(data.value) + '%');
|
||||
|
||||
var text = translations.PLUGIN_ADMIN.UPDATES_AVAILABLE;
|
||||
if (data.value == 100) {
|
||||
text = translations.PLUGIN_ADMIN.FULLY_UPDATED;
|
||||
}
|
||||
$('.js__updates-available-description').html(text)
|
||||
$('.updates-chart .hidden').removeClass('hidden');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user