Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genericizes label viewer #161

Merged
merged 10 commits into from
Jan 2, 2025
Prev Previous commit
Next Next commit
imports from constants, fix zoom
aarongundel committed Dec 31, 2024
commit e61f26c47ac0380df1b33649c46291ce6b94cb82
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ import ConfirmDialog from "primevue/confirmdialog";
import { useConfirm } from "primevue/useconfirm";

import type { MetaString, MetaStringText } from "@/arches_lingo/types.ts";
import { SECONDARY } from "@/arches_lingo/constants.ts";
import { DANGER } from "@/arches_references/constants.ts";

const { $gettext } = useGettext();
const expandedRows = ref([]);
@@ -29,12 +31,12 @@ function confirmDelete(tileId: string) {
},
rejectProps: {
label: $gettext("Cancel"),
severity: "secondary",
severity: SECONDARY,
outlined: true,
},
acceptProps: {
label: $gettext("Delete"),
severity: "danger",
severity: DANGER,
},
});
}
@@ -47,7 +49,6 @@ function confirmDelete(tileId: string) {
<DataTable
v-model:expanded-rows="expandedRows"
:value="props.metaStrings"
table-style="min-width: 50rem"
>
<Column
expander