sharing to groups, shaing icon opens boarddetails, enter creates card or stack

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-07-12 14:22:23 +02:00
committed by Julius Härtl
parent 10b7d8b335
commit 70d3fba187
4 changed files with 11 additions and 13 deletions

View File

@@ -33,8 +33,8 @@
</div> </div>
<div v-if="board" class="crumb svg"> <div v-if="board" class="crumb svg">
<div class="board-bullet" /> <div class="board-bullet" />
<a href="#todo">{{ board.title }}</a> <a href="#">{{ board.title }}</a>
<span style="display: inline;" class="icon-shared" /> <router-link :to="{name: 'board.details'}" class="icon-shared" />
</div> </div>
<div v-if="board" class="board-actions"> <div v-if="board" class="board-actions">
<div id="stack-add"> <div id="stack-add">
@@ -42,7 +42,7 @@
<label for="new-stack-input-main" class="hidden-visually">Add a new stack</label> <label for="new-stack-input-main" class="hidden-visually">Add a new stack</label>
<input id="new-stack-input-main" v-model="newStackTitle" type="text" <input id="new-stack-input-main" v-model="newStackTitle" type="text"
class="no-close" class="no-close"
placeholder="Add a new stack"> placeholder="Add a new stack" @keyup.enter="clickAddNewStack()">
<input class="icon-confirm" type="button" title="Submit" <input class="icon-confirm" type="button" title="Submit"
@click="clickAddNewStack()"> @click="clickAddNewStack()">
</form> </form>

View File

@@ -12,7 +12,7 @@
</ul> </ul>
<h3>{{ t('deck', 'Deleted cards') }}</h3> <h3>{{ t('deck', 'Deleted cards') }}</h3>
{{ deletedCards }}
<ul> <ul>
<!-- <li ng-repeat="deletedCard in cardservice.deleted"> <!-- <li ng-repeat="deletedCard in cardservice.deleted">
<span class="icon icon-deck"></span> <span class="icon icon-deck"></span>

View File

@@ -49,7 +49,7 @@
<label for="new-stack-input-main" class="hidden-visually">Add a new card</label> <label for="new-stack-input-main" class="hidden-visually">Add a new card</label>
<input id="new-stack-input-main" v-model="newCardTitle" type="text" <input id="new-stack-input-main" v-model="newCardTitle" type="text"
class="no-close" class="no-close"
placeholder="Add a new card"> placeholder="Add a new card" @keyup.enter="clickAddCard()">
<input class="icon-confirm" type="button" title="Submit" <input class="icon-confirm" type="button" title="Submit"
@click="clickAddCard()"> @click="clickAddCard()">
</form> </form>
@@ -120,7 +120,7 @@ export default {
boardId: this.stack.boardId boardId: this.stack.boardId
} }
this.$store.dispatch('addCard', newCard) this.$store.dispatch('addCard', newCard)
} },
} }
} }
</script> </script>

View File

@@ -136,11 +136,9 @@ export default new Vuex.Store({
setBoards(state, boards) { setBoards(state, boards) {
state.boards = boards state.boards = boards
}, },
setSharees(state, sharees) { setSharees(state, shareesUsersAndGroups) {
state.sharees = sharees state.sharees = shareesUsersAndGroups.users
}, state.sharees.push(...shareesUsersAndGroups.groups)
addShareesGroups(state, groups) {
state.sharees.push(...groups)
}, },
setBoardFilter(state, filter) { setBoardFilter(state, filter) {
state.boardFilter = filter state.boardFilter = filter
@@ -264,8 +262,8 @@ export default new Vuex.Store({
params.append('itemType', 0) params.append('itemType', 0)
params.append('itemType', 1) params.append('itemType', 1)
axios.get(OC.linkToOCS('apps/files_sharing/api/v1') + 'sharees', { params }).then((response) => { axios.get(OC.linkToOCS('apps/files_sharing/api/v1') + 'sharees', { params }).then((response) => {
commit('setSharees', response.data.ocs.data.users) //commit('setSharees', response.data.ocs.data.users)
// commit('addShareesGroups', response.data.ocs.data.groups) commit('setSharees', response.data.ocs.data)
}) })
}, },
setBoardFilter({ commmit }, filter) { setBoardFilter({ commmit }, filter) {