-
{{ i18n.ts.createList }}
+
+ {{ i18n.ts.createList }}
+ {{ i18n.ts.deleteAll }}
+
@@ -41,6 +44,17 @@ async function create() {
pagingComponent.reload();
}
+async function deleteAll() {
+ const { canceled } = await os.confirm({
+ type: 'warning',
+ text: i18n.t('removeAreYouSure', { x: 'all lists' }),
+ });
+ if (canceled) return;
+
+ await os.api('users/lists/delete-all');
+ os.success();
+}
+
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
@@ -57,8 +71,13 @@ definePageMetadata({