Cut/Paste project and todos
This commit is contained in:
@@ -20,6 +20,7 @@ export default class CProgress extends Vue {
|
||||
@Prop({ required: true }) public progressval: number
|
||||
@Prop() public descr: string
|
||||
@Prop({ default: false }) public slider: boolean
|
||||
@Prop({ default: false }) public readonly: boolean
|
||||
|
||||
@Watch('progressval')
|
||||
public valchanged(value) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<div class="flex-item progress-item shadow-1">
|
||||
<q-slider v-if="slider" label
|
||||
class="cpr-slider-item"
|
||||
:readonly="readonly"
|
||||
:value="progressval"
|
||||
:min="0"
|
||||
:max="100"
|
||||
@@ -12,6 +13,7 @@
|
||||
<q-linear-progress
|
||||
v-else
|
||||
stripe
|
||||
:readonly="readonly"
|
||||
rounded
|
||||
:value="progressval / 100"
|
||||
class="cpr-progrbar-item"
|
||||
|
||||
@@ -10,6 +10,7 @@ import { SubMenusProj } from '../SubMenusProj'
|
||||
import { CDate } from '../../CDate'
|
||||
|
||||
import { date } from 'quasar'
|
||||
import { GlobalStore } from '@store'
|
||||
|
||||
@Component({
|
||||
components: { SubMenusProj, CDate },
|
||||
@@ -488,6 +489,7 @@ export default class SingleProject extends Vue {
|
||||
this.activeEdit()
|
||||
} else if (action === tools.MenuAction.CUT) {
|
||||
const myaction = {
|
||||
table: tools.projects,
|
||||
type: tools.MenuAction.CUT,
|
||||
_id: this.itemproject._id
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { UserStore } from '@modules'
|
||||
import { Projects, UserStore } from '@modules'
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
|
||||
import { ITodo } from '../../../model/index'
|
||||
@@ -460,6 +460,14 @@ export default class SingleTodo extends Vue {
|
||||
return await this.setCompleted()
|
||||
} else if (action === tools.MenuAction.PROGRESS_BAR) {
|
||||
return await this.updatedata('progress')
|
||||
} else if (action === tools.MenuAction.CUT) {
|
||||
const myaction = {
|
||||
table: tools.todos,
|
||||
type: tools.MenuAction.CUT,
|
||||
_id: this.itemtodo._id,
|
||||
cat: this.itemtodo.category
|
||||
}
|
||||
return await Projects.actions.ActionCutPaste(myaction)
|
||||
} else if (action === 0) {
|
||||
this.deselectAndExitEdit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user