|
|
@ -436,7 +436,7 @@ |
|
|
|
<!-- People with private link can only see cells visible in this view --> |
|
|
|
<!-- People with private link can only see cells visible in this view --> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<div style="border-radius: 4px" class="share-link-box body-2 pa-2 d-flex align-center"> |
|
|
|
<div style="border-radius: 4px" class="share-link-box body-2 pa-2 d-flex align-center"> |
|
|
|
{{ `${dashboardUrl}#/nc/${shareLink.view_type === 'form' ? 'form' : 'view' }/${shareLink.view_id}` }} |
|
|
|
{{ `${dashboardUrl}#/nc/${shareLink.view_type === 'form' ? 'form' : 'view'}/${shareLink.view_id}` }} |
|
|
|
<v-spacer /> |
|
|
|
<v-spacer /> |
|
|
|
<a |
|
|
|
<a |
|
|
|
:href=" `${dashboardUrl}#/nc/${shareLink.view_type === 'form' ? 'form' : 'view'}/${shareLink.view_id}`" |
|
|
|
:href=" `${dashboardUrl}#/nc/${shareLink.view_type === 'form' ? 'form' : 'view'}/${shareLink.view_id}`" |
|
|
@ -590,6 +590,7 @@ export default { |
|
|
|
if (this.load) { |
|
|
|
if (this.load) { |
|
|
|
await this.loadViews() |
|
|
|
await this.loadViews() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.onViewIdChange(this.selectedViewIdLocal) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
onViewIdChange(id) { |
|
|
|
onViewIdChange(id) { |
|
|
@ -631,7 +632,8 @@ export default { |
|
|
|
fieldsOrder: JSON.parse(mainView.query_params).fieldsOrder |
|
|
|
fieldsOrder: JSON.parse(mainView.query_params).fieldsOrder |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} catch {} |
|
|
|
} catch { |
|
|
|
|
|
|
|
} |
|
|
|
this.createViewType = type |
|
|
|
this.createViewType = type |
|
|
|
this.showCreateView = true |
|
|
|
this.showCreateView = true |
|
|
|
}, |
|
|
|
}, |
|
|
@ -711,7 +713,9 @@ export default { |
|
|
|
const old_title = view.title |
|
|
|
const old_title = view.title |
|
|
|
|
|
|
|
|
|
|
|
this.$set(view, 'edit', false) |
|
|
|
this.$set(view, 'edit', false) |
|
|
|
if (view.title_temp === view.title) { return } |
|
|
|
if (view.title_temp === view.title) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if (this.viewsList.some((v, i) => i !== index && (v.alias || v.title) === view.title_temp)) { |
|
|
|
if (this.viewsList.some((v, i) => i !== index && (v.alias || v.title) === view.title_temp)) { |
|
|
|
this.$toast.info('View name should be unique').goAway(3000) |
|
|
|
this.$toast.info('View name should be unique').goAway(3000) |
|
|
|
return |
|
|
|
return |
|
|
|