Skip to content

Commit

Permalink
Rename visible -> modalVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Feb 26, 2024
1 parent c677d55 commit a80dc7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arches/app/src/components/ControlledListManager/AddLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const props: {
onInsert: (label: Label) => Promise<Label>;
} = defineProps(["item", "type", "onInsert"]);
const visible = ref(false);
const modalVisible = ref(false);
const { $gettext } = useGettext();
const slateBlue = "#2d3c4b"; // todo: import from theme somewhere
Expand Down Expand Up @@ -48,7 +48,7 @@ const buttonLabel = computed(() => {
<template>
<button
class="add-label"
@click="visible = true"
@click="modalVisible = true"
>
<i
class="fa fa-plus-circle"
Expand All @@ -59,7 +59,7 @@ const buttonLabel = computed(() => {
</span>
</button>
<EditLabel
v-model="visible"
v-model="modalVisible"
:header="buttonLabel"
:label="newLabel"
:on-insert
Expand Down
6 changes: 3 additions & 3 deletions arches/app/src/components/ControlledListManager/LabelRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const props: {
onDelete: (labelId: Label) => Promise<void>,
} = defineProps(["label", "onDelete"]);
const visible = ref(false);
const modalVisible = ref(false);
const { $gettext } = useGettext();
const header = computed(() => {
Expand All @@ -34,15 +34,15 @@ const header = computed(() => {
<button @click="props.onDelete(props.label)">
{{ $gettext("Delete") }}
</button>
<button @click="visible = true">
<button @click="modalVisible = true">
{{ $gettext("Edit") }}
</button>
</span>
<span class="label language">{{ props.label.language }}</span>
</div>
</div>
<EditLabel
v-model="visible"
v-model="modalVisible"
:header
:label
:on-insert="null"
Expand Down

0 comments on commit a80dc7d

Please sign in to comment.