mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
37 lines
814 B
JavaScript
37 lines
814 B
JavaScript
import { Template } from 'meteor/templating';
|
|
import { ReactiveVar } from 'meteor/reactive-var';
|
|
import {
|
|
boardConverter,
|
|
isConverting,
|
|
conversionProgress,
|
|
conversionStatus,
|
|
conversionEstimatedTime
|
|
} from '/client/lib/boardConverter';
|
|
|
|
Template.boardConversionProgress.helpers({
|
|
isConverting() {
|
|
return isConverting.get();
|
|
},
|
|
|
|
conversionProgress() {
|
|
return conversionProgress.get();
|
|
},
|
|
|
|
conversionStatus() {
|
|
return conversionStatus.get();
|
|
},
|
|
|
|
conversionEstimatedTime() {
|
|
return conversionEstimatedTime.get();
|
|
}
|
|
});
|
|
|
|
Template.boardConversionProgress.onCreated(function() {
|
|
// Subscribe to conversion state changes
|
|
this.autorun(() => {
|
|
isConverting.get();
|
|
conversionProgress.get();
|
|
conversionStatus.get();
|
|
conversionEstimatedTime.get();
|
|
});
|
|
});
|