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

View File

@@ -12,7 +12,7 @@
</ul>
<h3>{{ t('deck', 'Deleted cards') }}</h3>
{{ deletedCards }}
<ul>
<!-- <li ng-repeat="deletedCard in cardservice.deleted">
<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>
<input id="new-stack-input-main" v-model="newCardTitle" type="text"
class="no-close"
placeholder="Add a new card">
placeholder="Add a new card" @keyup.enter="clickAddCard()">
<input class="icon-confirm" type="button" title="Submit"
@click="clickAddCard()">
</form>
@@ -120,7 +120,7 @@ export default {
boardId: this.stack.boardId
}
this.$store.dispatch('addCard', newCard)
}
},
}
}
</script>

View File

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