forked from rc/aircox
update assets dependencies; still work to be done to solve it all
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
import Model, {Set} from 'public/model';
|
||||
import {setEcoInterval} from 'public/utils';
|
||||
|
||||
@@ -61,7 +59,7 @@ export class Source extends Model {
|
||||
if(!this.data.remaining || !this.isPlaying)
|
||||
return;
|
||||
const delta = (Date.now() - this.commitDate) / 1000;
|
||||
Vue.set(this, 'remaining', this.data.remaining - delta)
|
||||
this.remaining = this.data.remaining - delta
|
||||
}
|
||||
|
||||
commit(data) {
|
||||
@@ -70,7 +68,7 @@ export class Source extends Model {
|
||||
|
||||
this.commitDate = Date.now()
|
||||
super.commit(data)
|
||||
Vue.set(this, 'remaining', data.remaining)
|
||||
this.remaining = data.remaining
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user