When exiting the reorder mode while the generic tab is empty, set the active tab to the first available one

This commit is contained in:
Mads Rasmussen
2021-08-05 13:01:47 +02:00
parent a1893206d4
commit 05f6b4dc7c

View File

@@ -322,6 +322,11 @@
scope.sortingButtonKey = "general_reorder";
}
// When exiting the reorder mode while the generic tab is empty, set the active tab to the first available one
if (scope.tabs.length > 0 && !scope.openTabAlias) {
scope.openTabAlias = scope.tabs[0].alias;
}
} else {
scope.sortingMode = true;
scope.sortingButtonKey = "general_reorderDone";