refactor: cleanup code

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
environments/review-docs-renov-vr2nay/deployments/16781
Kasper Seweryn 2023-01-20 23:35:44 +01:00
rodzic 8353de9c15
commit 8d65551c2c
1 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -32,11 +32,7 @@ const configs = useEditConfigs()
const router = useRouter()
const store = useStore()
const canApprove = computed(() => !props.obj.is_applied && store.state.auth.availablePermissions.library
? true
: false
)
const canApprove = computed(() => !props.obj.is_applied && store.state.auth.availablePermissions.library)
const canDelete = computed(() => {
if (props.obj.is_applied || props.obj.is_approved) return false
if (!store.state.auth.authenticated) return false