const StoryComponent = {
    templateUrl: "/app/activity/story.component.html",
    bindings: {
        activity: '<'
    },
    controller: function ($stateParams, $activity, $timeout) {
        let $ctrl = this;
        $ctrl.disabledButton = true;
        $ctrl.disabled = true;
        $ctrl.completeButton = true;

        $ctrl.$onInit = function () {
            $timeout(function () {
                $ctrl.disabled = false;
            }, 10 * 1000); //10 seconds
        }

        $ctrl.next = function () {
            //$activity.completeCurrentActivity(); //this action was moved to the goNextActivity in Sprint 2
            $activity.gotoNextActivity();
        }
    }
};