The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
import { Template } from 'meteor/templating' ;
import {
migrationManager ,
isMigrating ,
migrationProgress ,
migrationStatus ,
migrationCurrentStep ,
migrationEstimatedTime ,
migrationSteps
} from '/client/lib/migrationManager' ;
Template . migrationProgress . helpers ( {
isMigrating ( ) {
return isMigrating . get ( ) ;
} ,
migrationProgress ( ) {
return migrationProgress . get ( ) ;
} ,
migrationStatus ( ) {
return migrationStatus . get ( ) ;
} ,
migrationCurrentStep ( ) {
return migrationCurrentStep . get ( ) ;
} ,
migrationEstimatedTime ( ) {
return migrationEstimatedTime . get ( ) ;
} ,
migrationSteps ( ) {
const steps = migrationSteps . get ( ) ;
const currentStep = migrationCurrentStep . get ( ) ;
return steps . map ( step => ( {
... step ,
isCurrentStep : step . name === currentStep
} ) ) ;
}
} ) ;
Template . migrationProgress . onCreated ( function ( ) {
// Subscribe to migration state changes
this . autorun ( ( ) => {
isMigrating . get ( ) ;
migrationProgress . get ( ) ;
migrationStatus . get ( ) ;
migrationCurrentStep . get ( ) ;
migrationEstimatedTime . get ( ) ;
migrationSteps . get ( ) ;
} ) ;
} ) ;