mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Add empty context menu (#8519)
* Add empty context menu - For tables without "row actions" - Show an "empty" menu - For UX consistency across all tables * Fix for playwright tests - Recent changes to the demo dataset... * Fix typo
This commit is contained in:
1 parent
c5f529f64a
commit
db70597755
3 files changed
+4
-2
No files matched your search
@@ -590,6 +590,8 @@ export function InvenTreeTable<T extends Record<string, any>>({
|
||||
disabled: action.disabled
|
||||
}));
|
||||
return showContextMenu(items)(event);
|
||||
} else {
|
||||
return showContextMenu([])(event);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ test('Parts - Allocations', async ({ page }) => {
|
||||
|
||||
// Check that the overall allocations are displayed correctly
|
||||
await page.getByText('11 / 825').waitFor();
|
||||
await page.getByText('6 / 110').waitFor();
|
||||
await page.getByText('5 / 109').waitFor();
|
||||
|
||||
// Navigate to the "Allocations" tab
|
||||
await page.getByRole('tab', { name: 'Allocations' }).click();
|
||||
|
||||
Reference in new issue
Block a user