@afeefa/vue-app 0.0.142 → 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 0.0.142
1
+ 0.0.143
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.142",
3
+ "version": "0.0.143",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -250,6 +250,7 @@ export default class ARichTextArea extends Vue {
250
250
  <style lang="scss" scoped>
251
251
  .editorWrapper {
252
252
  padding: .5rem;
253
+ margin: 0 1px;
253
254
 
254
255
  border: 1px solid white;
255
256
  outline: 1px solid rgb(0 0 0 / 38%);
@@ -64,7 +64,6 @@ import { DialogEvent } from '@a-vue/events'
64
64
  })
65
65
  export default class EditModal extends Vue {
66
66
  show_ = false
67
- ignoreChangesOnClose_ = false
68
67
 
69
68
  created () {
70
69
  if (!this.model && !this.createModelToEdit) {
@@ -109,7 +108,7 @@ export default class EditModal extends Vue {
109
108
 
110
109
  async beforeClose () {
111
110
  // run only if show_ is true to prevent double checks with a-modal
112
- if (this.show_ && this.$refs.form.changed && !this.ignoreChangesOnClose_) {
111
+ if (this.show_ && this.$refs.form.changed) {
113
112
  const result = await this.$events.dispatch(new DialogEvent(DialogEvent.SHOW, {
114
113
  title: 'Änderungen verwerfen?',
115
114
  message: 'Im Formular sind nicht gespeicherte Änderungen. Sollen diese verworfen werden?',
@@ -136,9 +135,7 @@ export default class EditModal extends Vue {
136
135
  * hook to allow to leave a just created (saved) model
137
136
  */
138
137
  ignoreChangesOnClose () {
139
- // this.$refs.form.forceUnchanged()
140
- console.info('TODO switch form to forceUnchanged')
141
- this.ignoreChangesOnClose_ = true
138
+ this.$refs.form.forceUnchanged()
142
139
  }
143
140
  }
144
141
  </script>
@@ -0,0 +1,6 @@
1
+ export function isToday (date) {
2
+ const today = new Date()
3
+ return date.getDate() === today.getDate() &&
4
+ date.getMonth() === today.getMonth() &&
5
+ date.getFullYear() === today.getFullYear()
6
+ }
@@ -63,10 +63,6 @@
63
63
  color: #616161 !important;
64
64
  }
65
65
 
66
- .theme--light.v-input--is-focused fieldset {
67
- border-color: #1976D2;
68
- }
69
-
70
66
  .theme--light.v-btn.v-btn--disabled,
71
67
  .theme--light.v-btn.v-btn--disabled span,
72
68
  .theme--light.v-btn.v-btn--disabled .v-icon,