Skip to content

Commit

Permalink
Fix todo template (microsoft#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhitten authored Sep 26, 2019
1 parent df715ef commit 6a74f46
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../app.schema",
"$type": "Microsoft.AdaptiveDialog",
"steps": [
"actions": [
{
"$type": "Microsoft.SetProperty",
"value": "@title",
Expand All @@ -15,7 +15,7 @@
{
"$type": "Microsoft.IfCondition",
"condition": "user.todos == null",
"steps": [
"actions": [
{
"$type": "Microsoft.InitProperty",
"property": "user.todos",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../app.schema",
"$type": "Microsoft.AdaptiveDialog",
"steps": [
"actions": [
{
"$type": "Microsoft.EditArray",
"changeType": "Clear",
Expand All @@ -11,13 +11,13 @@
{
"$type": "Microsoft.IfCondition",
"condition": "dialog.cleared",
"steps": [
"actions": [
{
"$type": "Microsoft.SendActivity",
"activity": "Successfully cleared items in the Todo List."
}
],
"elseSteps": [
"elseActions": [
{
"$type": "Microsoft.SendActivity",
"activity": "You don't have any item in the Todo List."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../app.schema",
"$type": "Microsoft.AdaptiveDialog",
"steps": [
"actions": [
{
"$type": "Microsoft.SetProperty",
"value": "@title",
Expand All @@ -22,7 +22,7 @@
{
"$type": "Microsoft.IfCondition",
"condition": "dialog.removed",
"steps": [
"actions": [
{
"$type": "Microsoft.SendActivity",
"activity": "Successfully removed a todo named \"{dialog.todo}\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"CancelIntent": "(?i)cancel|never mind"
}
},
"rules": [
"events": [
{
"$type": "Microsoft.OnIntent",
"intent": "AddIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.BeginDialog",
"dialog": "AddToDo"
Expand All @@ -28,7 +28,7 @@
{
"$type": "Microsoft.OnIntent",
"intent": "DeleteIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.BeginDialog",
"dialog": "DeleteToDo"
Expand All @@ -38,7 +38,7 @@
{
"$type": "Microsoft.OnIntent",
"intent": "ClearIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.BeginDialog",
"dialog": "ClearToDos"
Expand All @@ -48,7 +48,7 @@
{
"$type": "Microsoft.OnIntent",
"intent": "ShowIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.BeginDialog",
"dialog": "ShowToDos"
Expand All @@ -58,7 +58,7 @@
{
"$type": "Microsoft.OnIntent",
"intent": "HelpIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.SendActivity",
"activity": "[help]"
Expand All @@ -68,7 +68,7 @@
{
"$type": "Microsoft.OnIntent",
"intent": "CancelIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.SendActivity",
"activity": "ok."
Expand All @@ -80,7 +80,7 @@
},
{
"$type": "Microsoft.OnUnknownIntent",
"steps": [
"actions": [
{
"$type": "Microsoft.SendActivity",
"activity": "Hi! I'm a ToDo bot. Say \"add a todo named first\" to get started."
Expand Down

0 comments on commit 6a74f46

Please sign in to comment.