Commit 5336acf1 authored by ZeMKI's avatar ZeMKI
Browse files

Bugfix and optimization

* fixed a bug that when editing the study, the image wasn't saved
* fixed duration of created token messages
* created message on sorting creation
parent 39218031
......@@ -16,8 +16,6 @@ class Language
public function handle($request, Closure $next)
{
if ($request->session()->exists('locale')) {
\Session::put('test', 'diomadonnacristo');
\App::setLocale(\Session::get('locale'));
}
......
......@@ -400,6 +400,8 @@
this.$store.commit("increasemaxsorting");
this.interview.structure.sorting[this.sortingtotal] = {};
this.$forceUpdate();
this.$buefy.snackbar.open("Sorting added.");
}
})
......
......@@ -608,6 +608,13 @@
for (var i = 0; i < this.studydata.tokens.length; i++) {
this.sorting.tokens[i] = this.studydata.tokens[i];
if(_.has(this.sorting.tokens[i],"image_path") && this.sorting.tokens[i].image_path.indexOf("presets") == -1){
this.sorting.tokens[i].base64 = this.sorting.tokens[i].image_path;
}
}
for (var i = 0; i < this.studydata.tokens.length; i++) {
}
......
......@@ -191,7 +191,7 @@
this.$buefy.toast.open({
message: 'Token was successfully added.',
type: 'is-success',
duration: 4000
duration: 2000
});
this.$refs.newtokenmodal.isComponentModalActive = false;
this.$store.state.fetchtoken = false;
......@@ -303,7 +303,7 @@
this.$buefy.toast.open({
message: 'Token was successfully deleted.',
type: 'is-success',
duration: 3000
duration: 2000
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment