refactor: refactor create team modal to new system

This commit is contained in:
Andrew Bastin
2021-10-01 22:41:30 +05:30
committed by liyasthomas
parent 079083d0f2
commit 7ab1bbaf62
4 changed files with 100 additions and 55 deletions

View File

@@ -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,