Adding cancel action to wiki
parent
e9305acc27
commit
5ce2b92136
|
@ -95,6 +95,9 @@ class WikiDetailController extends mixOf(taiga.Controller, taiga.PageMixin, taig
|
|||
edit: ->
|
||||
@location.path("/project/#{@scope.projectSlug}/wiki/#{@scope.wikiSlug}/edit")
|
||||
|
||||
cancel: ->
|
||||
@location.path("/project/#{@scope.projectSlug}/wiki/#{@scope.wikiSlug}")
|
||||
|
||||
delete: ->
|
||||
onSuccess = =>
|
||||
@confirm.notify("success")
|
||||
|
|
|
@ -17,7 +17,7 @@ block content
|
|||
span.wiki-title(tg-bo-bind='wikiSlug|unslugify')
|
||||
.action-buttons
|
||||
a.button.button-green.save-wiki(href="", title="Save", ng-click="ctrl.save()") Save
|
||||
a.button.button-red.cancel-wiki(href="", title="CAncel", ng-click="") Cancel
|
||||
a.button.button-red.cancel-wiki(href="", title="CAncel", ng-click="ctrl.cancel()") Cancel
|
||||
|
||||
section.wysiwyg
|
||||
textarea(placeholder="Write a your wiki page", ng-model="wiki.content", tg-markitup)
|
||||
|
|
Loading…
Reference in New Issue