- add message class for help texts

- add migrations for message class
- load messages into vue form for dataset publishing
- check unique email of authors during dataset creation
- adaptions in create-step1.blade.php for tooltip colors
- updated package.json
This commit is contained in:
Arno Kaimbacher 2020-01-27 15:06:37 +01:00
parent a773fe2a1d
commit 0f6260f358
18 changed files with 127 additions and 31 deletions

View file

@ -29,7 +29,7 @@
v-bind:name="heading+'['+index+'][id]'"
class="form-control"
v-model="item.id"
v-bind:readonly="item.status==1"
readonly
data-vv-scope="step-1"
/></td>
<td>

View file

@ -43,6 +43,12 @@ import VueToast from 'vue-toast-notification';
import 'vue-toast-notification/dist/index.css';
Vue.use(VueToast);
// import VTooltip from 'v-tooltip';
// Vue.use(VTooltip);
import Tooltip from 'vue-directive-tooltip';
import 'vue-directive-tooltip/dist/vueDirectiveTooltip.css';
Vue.use(Tooltip);
const dict = {
custom: {
keyword_list: {
@ -147,6 +153,10 @@ const app = new Vue({
mounted() {
//this.step = 2;
this.reset();
console.log(this.messages);
},
beforeMount() {
this.messages = window.Laravel.messages;
},
computed: {
keywords_length() {
@ -544,14 +554,6 @@ const app = new Vue({
this.$toast.success("person has been successfully added as contributor");
}
},
// onAddSubmitter(person) {
// //if person is not in submitters array
// //if (this.submitters.includes(person) == false) {
// if (this.dataset.submitters.filter(e => e.id === person.id).length == 0) {
// this.dataset.submitters.push(person);
// this.dataset.checkedSubmitters.push(person.id);
// }
// },
/*
Removes a select file the user has uploaded
*/