@afeefa/vue-app 0.0.142 → 0.0.144
Sign up to get free protection for your applications and to get access to all the features.
- package/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/components/ARichTextArea.vue +1 -0
- package/src/components/form/EditModal.vue +2 -5
- package/src/utils/is-today.js +6 -0
- package/src-admin/components/FlyingContextContainer.vue +2 -8
- package/src-admin/components/list/ListView.vue +1 -1
- package/src-admin/styles.scss +0 -4
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.144
|
package/package.json
CHANGED
@@ -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
|
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
|
-
|
140
|
-
console.info('TODO switch form to forceUnchanged')
|
141
|
-
this.ignoreChangesOnClose_ = true
|
138
|
+
this.$refs.form.forceUnchanged()
|
142
139
|
}
|
143
140
|
}
|
144
141
|
</script>
|
@@ -19,8 +19,6 @@
|
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<div id="flyingContextContainer__children" />
|
22
|
-
|
23
|
-
<div class="v-navigation-drawer__border" />
|
24
22
|
</div>
|
25
23
|
</template>
|
26
24
|
|
@@ -99,22 +97,18 @@ export default class FlyingContextContainer extends Vue {
|
|
99
97
|
right: 0;
|
100
98
|
height: 100%;
|
101
99
|
min-width: 400px;
|
102
|
-
max-width:
|
100
|
+
max-width: calc(100vw - 100px);
|
103
101
|
top: 0;
|
104
102
|
background: white;
|
105
103
|
transition: right .2s;
|
106
104
|
padding: 2rem;
|
107
105
|
overflow-y: auto;
|
106
|
+
border-left: 1px solid rgba(0, 0, 0, .12);
|
108
107
|
|
109
108
|
&:not(.visible) {
|
110
109
|
right: -80vw;
|
111
110
|
}
|
112
111
|
|
113
|
-
.v-navigation-drawer__border {
|
114
|
-
background-color: rgba(0, 0, 0, .12);
|
115
|
-
left: 0;
|
116
|
-
}
|
117
|
-
|
118
112
|
.closeButton {
|
119
113
|
margin: -1rem 0 2rem -1rem;
|
120
114
|
}
|
package/src-admin/styles.scss
CHANGED