 
 
 class KanbanUsModalController extends ModalBaseController
-    @.$inject = ['$scope', '$rootScope', '$gmOverlay', '$gmFlash', 'resource', "$i18next"]
+    @.$inject = ["$scope", "$rootScope", "$gmOverlay", "$gmFlash", "resource", "$i18next"]
 
     constructor: (@scope, @rootScope, @gmOverlay, @gmFlash, @rs, @i18next) ->
         super(scope)

# limitations under the License.

class KanbanController extends TaigaPageController
    @.$inject = ['$scope', '$rootScope', '$routeParams', '$q', 'resource',
               '$data','$modal', "$model", "$i18next", "$favico"]

    constructor: (@scope, @rootScope, @routeParams, @q, @rs, @data, @modal, @model, @i18next, @favico) ->
        super(scope, rootScope, favico)

    section: 'kanban'
    getTitle: ->
        @i18next.t('common.kanban')

    initialize: ->
        @rootScope.pageBreadcrumb = [
            ["", ""],
            [@i18next.t('common.kanban'), null]
        ]

        @rs.resolve(pslug: @routeParams.pslug).then (data) =>

            @scope.form.id = data.id
            @scope.form.ref = data.ref
            @scope.defered.resolve(@scope.form)
            @gmFlash.info(@i18next.t("kanban.user-story-saved"))

        promise.then null, (data) =>
            @scope.checksleyErrors = data
