@afeefa/vue-app 0.0.211 → 0.0.213
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.213
|
package/package.json
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
</v-btn>
|
41
41
|
|
42
42
|
<edit-form-buttons
|
43
|
-
:changed="changed"
|
43
|
+
:changed="changed || forceChanged"
|
44
44
|
:forceActive="forceActive"
|
45
45
|
:valid="validFromOutside && valid"
|
46
46
|
angular
|
@@ -62,7 +62,7 @@ import { Component, Vue, Watch } from '@a-vue'
|
|
62
62
|
import { DialogEvent } from '@a-vue/events'
|
63
63
|
|
64
64
|
@Component({
|
65
|
-
props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true, forceActive: false}]
|
65
|
+
props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true, forceChanged: false, forceActive: false}]
|
66
66
|
})
|
67
67
|
export default class EditModal extends Vue {
|
68
68
|
show_ = false
|
@@ -114,7 +114,7 @@ export default class EditModal extends Vue {
|
|
114
114
|
|
115
115
|
async beforeClose () {
|
116
116
|
// run only if show_ is true to prevent double checks with a-modal
|
117
|
-
if (this.show_ && (this.$refs.form.changed)) {
|
117
|
+
if (this.show_ && (this.$refs.form.changed || this.forceChanged)) {
|
118
118
|
const result = await this.$events.dispatch(new DialogEvent(DialogEvent.SHOW, {
|
119
119
|
title: 'Änderungen verwerfen?',
|
120
120
|
message: 'Im Formular sind nicht gespeicherte Änderungen. Sollen diese verworfen werden?',
|
@@ -1,40 +1,12 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
:
|
6
|
-
:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
max-width="290px"
|
11
|
-
min-width="290px"
|
12
|
-
>
|
13
|
-
<template #activator="{ on, attrs }">
|
14
|
-
<v-text-field
|
15
|
-
v-model="model[name]"
|
16
|
-
:label="label || name"
|
17
|
-
prepend-icon="mdi-clock-time-four-outline"
|
18
|
-
readonly
|
19
|
-
dense
|
20
|
-
outlined
|
21
|
-
v-bind="attrs"
|
22
|
-
v-on="on"
|
23
|
-
/>
|
24
|
-
</template>
|
25
|
-
<v-time-picker
|
26
|
-
v-if="menu"
|
27
|
-
ref="timePicker"
|
28
|
-
v-model="model[name]"
|
29
|
-
:validator="validator"
|
30
|
-
v-bind="$attrs"
|
31
|
-
full-width
|
32
|
-
scrollable
|
33
|
-
format="24hr"
|
34
|
-
v-on="$listeners"
|
35
|
-
@click:minute="$refs.menu.save(model[name])"
|
36
|
-
/>
|
37
|
-
</v-menu>
|
2
|
+
<a-time-picker
|
3
|
+
v-model="model[name]"
|
4
|
+
class="timePicker"
|
5
|
+
:label="label || name"
|
6
|
+
:validator="validator"
|
7
|
+
v-bind="$attrs"
|
8
|
+
v-on="$listeners"
|
9
|
+
/>
|
38
10
|
</template>
|
39
11
|
|
40
12
|
<script>
|
@@ -43,9 +15,5 @@ import { FormFieldMixin } from '../FormFieldMixin'
|
|
43
15
|
|
44
16
|
@Component
|
45
17
|
export default class FormFieldTime extends Mixins(FormFieldMixin) {
|
46
|
-
menu = false
|
47
|
-
validate () {
|
48
|
-
this.$refs.timePicker.validate()
|
49
|
-
}
|
50
18
|
}
|
51
19
|
</script>
|