Skip to content

Commit

Permalink
style: remove an unneeded prop and update some text
Browse files Browse the repository at this point in the history
  • Loading branch information
wmontgomery committed Nov 27, 2023
1 parent 6480daf commit 60a43cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions shared/src/components/tabulator/DatePickerEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
type="button"
@click.prevent="closeModal"
>
Cancel
Cancel Change
</button>
</div>
</div>
Expand All @@ -39,7 +39,7 @@ import Vue from 'vue'
import DatePicker from 'vue2-datepicker'
import helpers from '@shared/lib/tabulator'
export default Vue.extend({
props: ['cell', 'dataType', 'active'],
props: ['cell', 'dataType'],
components: { DatePicker },
data() {
return {
Expand Down Expand Up @@ -88,14 +88,13 @@ export default Vue.extend({
return times.includes(dataValue.trim().toLowerCase().replace(/ *\([^)]*\) */g, ''))
},
submit(e) {
console.log('Submit', e)
this.$emit('value', e)
this.cell.setValue(e)
this.$modal.hide(this.modalName)
},
},
mounted() {
// nothing really happens here, rendered watch is the real hook.
console.log('~~~', this.dataType, this.cell.getValue(), this.active)
console.log('~~~', this.dataType, this.cell.getValue())
const dataType = this.dataType || ''
const val = this.cell.getValue()
let dataValue = val == null ? val : helpers.niceString(val)
Expand Down
1 change: 0 additions & 1 deletion shared/src/components/tabulator/NullableInputEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
v-if="isDateTime && this.typeEditorActive"
:cell="this.cell"
:data-type="this.params.dataType"
:active="typeEditorActive"
/>
</div>
</template>
Expand Down

0 comments on commit 60a43cc

Please sign in to comment.