Browse Source

refactor(gui-v2): replace with hash based url

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3385/head
Pranav C 2 years ago
parent
commit
45890000ba
  1. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue
  2. 2
      packages/nc-gui-v2/components/tabs/auth/UserManagement.vue
  3. 2
      packages/nc-gui-v2/components/tabs/auth/user-management/ShareBase.vue

2
packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

@ -103,7 +103,7 @@ const deleteLink = async (id: string) => {
<a-table-column key="title" :title="$t('labels.viewLink')" data-index="title"> <a-table-column key="title" :title="$t('labels.viewLink')" data-index="title">
<template #default="{ record }"> <template #default="{ record }">
<nuxt-link :to="sharedViewUrl(record)" class="text-xs"> <nuxt-link :to="sharedViewUrl(record)" class="text-xs">
{{ `${dashboardUrl}/${sharedViewUrl(record)}` }} {{ `${dashboardUrl}#${sharedViewUrl(record)}` }}
</nuxt-link> </nuxt-link>
</template> </template>
</a-table-column> </a-table-column>

2
packages/nc-gui-v2/components/tabs/auth/UserManagement.vue

@ -137,7 +137,7 @@ const resendInvite = async (user: User) => {
const copyInviteUrl = (user: User) => { const copyInviteUrl = (user: User) => {
if (!user.invite_token) return if (!user.invite_token) return
copy(`${dashboardUrl}/signup/${user.invite_token}`) copy(`${dashboardUrl}#/signup/${user.invite_token}`)
message.success('Invite url copied to clipboard') message.success('Invite url copied to clipboard')
} }

2
packages/nc-gui-v2/components/tabs/auth/user-management/ShareBase.vue

@ -26,7 +26,7 @@ const { project } = useProject()
const { copy } = useClipboard() const { copy } = useClipboard()
const url = $computed(() => (base && base.uuid ? `${dashboardUrl}/base/${base.uuid}` : null)) const url = $computed(() => (base && base.uuid ? `${dashboardUrl}#/base/${base.uuid}` : null))
const loadBase = async () => { const loadBase = async () => {
try { try {

Loading…
Cancel
Save