Skip to content

Commit

Permalink
[fix] Cannot open current time if Perso
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-debris committed Dec 14, 2020
1 parent 197867f commit 7d4ece8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "magina-timer",
"release": "build",
"version": "2.0.3",
"version": "2.0.4",
"private": true,
"description": "Application Magina Timer pour Mac & Windows",
"author": "Valentin Debris <valentin@magina.fr>",
Expand Down
10 changes: 7 additions & 3 deletions src/components/App/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ export default class Header extends Vue {
const t = i.obj as RxTimeDocument;
if (t) {
this.title = t.title;
// debugger;
if (this.time) {
await this.time.atomicUpdate((data) => {
// debugger;
data.title = this.title;
data.taskId = t.taskId;
data.isPersonal = t.isPersonal;
Expand Down Expand Up @@ -316,7 +314,13 @@ export default class Header extends Vue {
if (!this.time) {
return;
}
EventBus.$emit("TOGGLE_PAN", this.time);
setTimeout(
function() {
//@ts-ignore
EventBus.$emit("TOGGLE_PAN", this.time);
}.bind(this),
200
);
}
public updateDuration() {
Expand Down

0 comments on commit 7d4ece8

Please sign in to comment.