refactor: refactor create team modal to new system
This commit is contained in:
committed by
liyasthomas
parent
079083d0f2
commit
7ab1bbaf62
@@ -4,7 +4,7 @@
|
||||
<div class="p-4">
|
||||
<label
|
||||
class="cursor-pointer transition hover:text-secondaryDark"
|
||||
@click="team.myRole === 'OWNER' ? $emit('edit-team') : ''"
|
||||
@click="team.myRole === 'OWNER' ? emit('edit-team') : ''"
|
||||
>
|
||||
{{ team.name || $t("state.nothing_found") }}
|
||||
</label>
|
||||
@@ -36,7 +36,7 @@
|
||||
:label="$t('action.edit').toString()"
|
||||
@click.native="
|
||||
() => {
|
||||
$emit('edit-team')
|
||||
emit('edit-team')
|
||||
$refs.options.tippy().hide()
|
||||
}
|
||||
"
|
||||
@@ -94,6 +94,11 @@ const props = defineProps<{
|
||||
teamID: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: "edit-team"): void
|
||||
|
||||
}>()
|
||||
|
||||
const {
|
||||
app: { i18n },
|
||||
$toast,
|
||||
|
||||
Reference in New Issue
Block a user