committed by
Julius Härtl
parent
b07bf861bd
commit
a15a00ab6b
@@ -69,7 +69,12 @@
|
|||||||
class="icon-close"
|
class="icon-close"
|
||||||
@click.stop.prevent="cancelEdit">
|
@click.stop.prevent="cancelEdit">
|
||||||
</form>
|
</form>
|
||||||
<ColorPicker v-model="editColor" />
|
<!-- <ColorPicker v-model="editColor" /> -->
|
||||||
|
<ColorPicker :value="`#${board.color}`" @input="updateColor">
|
||||||
|
<div :style="{ backgroundColor: getColor }" class="color0">
|
||||||
|
Click to choose color
|
||||||
|
</div>
|
||||||
|
</ColorPicker>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
@@ -77,7 +82,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import { PopoverMenu } from '@nextcloud/vue/dist/Components/PopoverMenu'
|
import { PopoverMenu } from '@nextcloud/vue/dist/Components/PopoverMenu'
|
||||||
import ClickOutside from 'vue-click-outside'
|
import ClickOutside from 'vue-click-outside'
|
||||||
import ColorPicker from '../ColorPicker'
|
// import ColorPicker from '../ColorPicker'
|
||||||
|
import { ColorPicker } from '@nextcloud/vue/dist/Components/ColorPicker'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppNavigationBoard',
|
name: 'AppNavigationBoard',
|
||||||
@@ -107,6 +113,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
getColor() {
|
||||||
|
if (this.editColor !== '') {
|
||||||
|
return this.editColor
|
||||||
|
}
|
||||||
|
return this.board.color
|
||||||
|
},
|
||||||
undoText: function() {
|
undoText: function() {
|
||||||
// todo translation
|
// todo translation
|
||||||
return 'deleted ' + this.board.title
|
return 'deleted ' + this.board.title
|
||||||
@@ -232,6 +244,9 @@ export default {
|
|||||||
hideMenu() {
|
hideMenu() {
|
||||||
this.menuOpen = false
|
this.menuOpen = false
|
||||||
},
|
},
|
||||||
|
updateColor(newColor) {
|
||||||
|
this.editColor = newColor
|
||||||
|
},
|
||||||
applyEdit(e) {
|
applyEdit(e) {
|
||||||
this.editing = false
|
this.editing = false
|
||||||
if (this.editTitle || this.editColor) {
|
if (this.editTitle || this.editColor) {
|
||||||
@@ -264,4 +279,8 @@ export default {
|
|||||||
#app-navigation #deck-navigation .editing {
|
#app-navigation #deck-navigation .editing {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
.color0 {
|
||||||
|
border-radius: 6px;
|
||||||
|
height: 25px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user