Browse Source

fix: input watchers

pull/6441/head
sreehari jayaraj 1 year ago
parent
commit
3a529ea5c4
  1. 2
      packages/nc-gui/components/project/AccessSettings.vue
  2. 2
      packages/nc-gui/components/workspace/CollaboratorsList.vue
  3. 7
      packages/nc-gui/components/workspace/InviteSection.vue

2
packages/nc-gui/components/project/AccessSettings.vue

@ -176,7 +176,7 @@ onMounted(async () => {
v-else-if="!collaborators?.length" v-else-if="!collaborators?.length"
class="nc-collaborators-list w-full h-full flex flex-col items-center justify-center mt-36" class="nc-collaborators-list w-full h-full flex flex-col items-center justify-center mt-36"
> >
<Empty description="No Members found" /> <Empty description="No members found" />
</div> </div>
<div v-else class="nc-collaborators-list nc-scrollbar-md"> <div v-else class="nc-collaborators-list nc-scrollbar-md">
<div class="nc-collaborators-list-header"> <div class="nc-collaborators-list-header">

2
packages/nc-gui/components/workspace/CollaboratorsList.vue

@ -55,7 +55,7 @@ onMounted(async () => {
</a-input> </a-input>
</div> </div>
<div v-if="!filterCollaborators?.length" class="w-full h-full flex flex-col items-center justify-center mt-36"> <div v-if="!filterCollaborators?.length" class="w-full h-full flex flex-col items-center justify-center mt-36">
<Empty description="No Members found" /> <Empty description="No members found" />
</div> </div>
<table v-else class="nc-collaborators-list-table !nc-scrollbar-md"> <table v-else class="nc-collaborators-list-table !nc-scrollbar-md">
<thead> <thead>

7
packages/nc-gui/components/workspace/InviteSection.vue

@ -23,6 +23,13 @@ const inviteCollaborator = async () => {
} }
} }
watch(inviteData, (newVal) => {
console.log(newVal.email)
if (newVal.email[-1] === ',') {
console.log(newVal.email)
}
})
// allow only lower roles to be assigned // allow only lower roles to be assigned
const allowedRoles = ref<WorkspaceUserRoles[]>([]) const allowedRoles = ref<WorkspaceUserRoles[]>([])

Loading…
Cancel
Save