Commit f06b241c authored by EL HASSANE GARGEM's avatar EL HASSANE GARGEM
Browse files

associate introjs to main vue

parent 4db87526
...@@ -13,7 +13,8 @@ var partVM = new Vue({ ...@@ -13,7 +13,8 @@ var partVM = new Vue({
blockShortcuts: false, blockShortcuts: false,
fullsizeimage: false, fullsizeimage: false,
selectedTranscription: null, selectedTranscription: null,
comparedTranscriptions: [] comparedTranscriptions: [],
intro : introJs()
}, },
mounted(){ mounted(){
if(onboarding) { if(onboarding) {
...@@ -195,17 +196,16 @@ var partVM = new Vue({ ...@@ -195,17 +196,16 @@ var partVM = new Vue({
}, },
methods: { methods: {
call_introjs(){ call_introjs(){
var document_edit = introJs();
document_edit.setOptions({steps: steps_intro}); this.intro.setOptions({steps: steps_intro});
document_edit.start(); this.intro.start();
document_edit.onexit(function () { this.intro.onexit(function () {
// exitonboarding(); exitonboarding();
}); });
document_edit.oncomplete(function () { this.intro.oncomplete(function () {
segmentation_intro.start(); window.location.href= models_url;
}); });
console.log("hey you");
}, },
resetZoom() { resetZoom() {
this.zoom.reset(); this.zoom.reset();
......
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