Fix empty 'more' apps navigation after installing an app

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2020-06-01 01:54:16 +02:00 committed by backportbot[bot]
parent df92a97f5b
commit 53d99755c5
1 changed files with 3 additions and 3 deletions

View File

@ -42,11 +42,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
var a = $('<a></a>').attr('href', entry.href);
var filename = $('<span></span>');
var loading = $('<div class="icon-loading-dark"></div>').css('display', 'none');
filename.text(entry.name); filename.text(entry.name);
filename.text(entry.name);
a.prepend(loading);
a.prepend(filename);
a.prepend(img);
li.append(a);
li.append(filename);
// add app icon to the navigation
var previousElement = $('#navigation li[data-id=' + previousEntry.id + ']');
@ -84,9 +84,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
var loading = $('<div class="icon-loading-dark"></div>').css('display', 'none');
filename.text(entry.name);
a.prepend(loading);
a.prepend(filename);
a.prepend(img);
li.append(a);
li.append(filename);
// add app icon to the navigation
var previousElement = $('#appmenu li[data-id=' + previousEntry.id + ']');