Skip to content

Commit

Permalink
#212 Make insert tags the first option when there are bad tags found
Browse files Browse the repository at this point in the history
  • Loading branch information
braxtonhall committed Jan 12, 2023
1 parent ce88e0f commit e8be0b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const insertTags = async (tags: string[]): Promise<boolean> => {
text: "Which tag would you like to insert?",
elements: [
...tags.map(toInsertionButton(tags, resolve)),
{kind: "button", colour: UIColour.RED, text: "Back", onClick: async () => resolve(false)},
{kind: "button", colour: UIColour.RED, text: "Done", onClick: async () => resolve(false)},
],
colour: UIColour.BLUE,
onCancel: async () => resolve(false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const getUserAcceptance = (
elements: [
{
kind: "button",
text: "Open the Tag Index",
text: "Insert Tags",
colour: UIColour.GREY,
onClick: async () => resolve(getSecondaryAcceptance(saveHandler)),
onClick: async () => resolve(insertTags(invalidTags).then(() => saveHandler({noCache: true}))),
},
{
kind: "button",
text: "Insert Tags",
text: "Open the Tag Index",
colour: UIColour.GREY,
onClick: async () => resolve(insertTags(invalidTags).then(() => saveHandler({noCache: true}))),
onClick: async () => resolve(getSecondaryAcceptance(saveHandler)),
},
{kind: "button", text: "Save anyway", colour: UIColour.GREY, onClick: async () => resolve(true)},
{kind: "button", text: "Cancel", colour: UIColour.PURPLE, onClick: async () => resolve(false)},
Expand Down

0 comments on commit e8be0b6

Please sign in to comment.