1
0

Added link sharing (#30)

This commit is contained in:
konrad
2019-09-09 17:55:43 +00:00
committed by Gitea
parent 857c283fb7
commit d83fb24bbd
18 changed files with 397 additions and 41 deletions

View File

@ -44,6 +44,8 @@
<component :is="manageUsersComponent" :id="list.id" type="list" shareType="user" :userIsAdmin="userIsAdmin"></component>
<component :is="manageTeamsComponent" :id="list.id" type="list" shareType="team" :userIsAdmin="userIsAdmin"></component>
<link-sharing :list-i-d="$route.params.id"/>
<modal
v-if="showDeleteModal"
@close="showDeleteModal = false"
@ -60,6 +62,7 @@
import router from '../../router'
import message from '../../message'
import manageSharing from '../sharing/userTeam'
import LinkSharing from '../sharing/linkSharing';
import ListModel from '../../models/list'
import ListService from '../../services/list'
@ -80,6 +83,7 @@
}
},
components: {
LinkSharing,
manageSharing,
},
beforeMount() {

View File

@ -41,7 +41,7 @@
},
beforeMount() {
// Check if the user is already logged in, if so, redirect him to the homepage
if (!auth.user.authenticated) {
if (!auth.user.authenticated && !auth.user.isLinkShareAuth) {
router.push({name: 'home'})
}