Do not give focus to appstore search input if subscription required
dialog is shown
This commit is contained in:
@@ -106,8 +106,11 @@ const categories = [
|
||||
{ id: 'wiki', label: 'Wiki'},
|
||||
];
|
||||
|
||||
function onAppInstallDialogClose() {
|
||||
async function onAppInstallDialogClose() {
|
||||
window.location.href = '#/appstore';
|
||||
|
||||
await nextTick();
|
||||
if (searchInput.value) searchInput.value.$el.focus();
|
||||
}
|
||||
|
||||
function onInstall(app) {
|
||||
@@ -162,9 +165,6 @@ async function onHashChange() {
|
||||
confirmLabel: t('main.dialog.close'),
|
||||
});
|
||||
}
|
||||
} else {
|
||||
await nextTick();
|
||||
if (searchInput.value) searchInput.value.$el.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user