feat(web): add better face management UI action (#3328)

* add better face management menu

* context menu

* change name form

* change name

* navigate to merge face

* fix web
This commit is contained in:
Alex
2023-07-18 12:36:20 -05:00
committed by GitHub
parent b2e06477f8
commit 02b70e693c
3 changed files with 171 additions and 34 deletions

View File

@@ -29,6 +29,7 @@
notificationController,
} from '$lib/components/shared-components/notification/notification';
import MergeFaceSelector from '$lib/components/faces-page/merge-face-selector.svelte';
import { onMount } from 'svelte';
export let data: PageData;
let isEditingName = false;
@@ -42,6 +43,12 @@
$: showAssets = !showMergeFacePanel && !showFaceThumbnailSelection;
onMount(() => {
const action = $page.url.searchParams.get('action');
if (action == 'merge') {
showMergeFacePanel = true;
}
});
afterNavigate(({ from }) => {
// Prevent setting previousRoute to the current page.
if (from && from.route.id !== $page.route.id) {